Skip to content

Instantly share code, notes, and snippets.

@Leont
Leont / keybase.md
Created October 7, 2014 10:00
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 March 22, 2010 15:00
A simple example of how you can export your C++ library to perl using libperl++
/* 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);
}