Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am leont on github.
  • I am leont (https://keybase.io/leont) on keybase.
  • I have a public key whose fingerprint is 1177 BE91 2FE5 19A5 1EA7 851A 4DDF 845A 2688 0B0A

To claim this, I am signing this object:

@Leont
Leont / Extend.C
Created Mar 22, 2010
A simple example of how you can export your C++ library to perl using libperl++
View Extend.C
/* Beat that, XS! Exporting functions and methods from C++ to Perl with just one macro */
#include <perl++/perl++.h>
#include <perl++/extend.h>
using namespace perl;
static void hello(const char* world) {
printf("Hello %s\n", world);
}
You can’t perform that action at this time.