From 020592344c70c1b287e52729086a493211daea5a Mon Sep 17 00:00:00 2001 From: Jeff Armstrong Date: Mon, 11 Jul 2011 22:47:19 -0400 Subject: Starting logical reorg of the native GEM calls. --- lib/ldg_Python.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/ldg_Python.h (limited to 'lib/ldg_Python.h') diff --git a/lib/ldg_Python.h b/lib/ldg_Python.h new file mode 100644 index 0000000..1a79e18 --- /dev/null +++ b/lib/ldg_Python.h @@ -0,0 +1,16 @@ +#ifndef __LDG_PYTHON_HEADERS +#define __LDG_PYTHON_HEADERS + +#include + +#define PY_API_FCOUNT 3 + +#ifndef LDG_INTERNAL +extern void *pycallbacks[PY_API_FCOUNT]; +#endif + +#define Py_InitModule(name,methods) ldg_callback(pycallbacks[0],name,methods,NULL,NULL) +#define PyArg_ParseTuple(tpl,...) ldg_callback(pycallbacks[1],tpl,##__VA_ARGS__) +#define Py_BuildValue(fmt,...) ldg_callback(pycallbacks[2],fmt,##__VA_ARGS__) + +#endif /*__LDG_PYTHON_HEADERS */ \ No newline at end of file -- cgit v1.2.3