Skip to content

Instantly share code, notes, and snippets.

@geogreff
geogreff / funkster.cpp
Created June 2, 2019 05:06 — forked from Sleepingwell/funkster.cpp
A very simple example of holding a C++ class in Python.
#include <Python.h>
struct MyClass {
int val;
MyClass(void) : val(42) {}
};
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus