Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 336 Bytes
#include <perl++/perl++.h>
#include <perl++/extend.h>
using namespace perl;
struct foo {
foo(const std::string&);
void bar(const char* world);
std::string buz(int);
};
static void exporter(Class<foo>& extend) {
extend.add(init<std::string>());
extend.add("bar", &foo::bar);
extend.add("buz", &foo::buz);
}
EXPORTER(exporter);
Jump to Line
Something went wrong with that request. Please try again.