move namespace creation function into py_capi_utils.c, to be used in more general cases, not just the blender/rna api.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#define PY_CAPI_UTILS_H
|
||||
|
||||
struct PyObject;
|
||||
struct PyTypeObject;
|
||||
|
||||
void PyC_ObSpit(char *name, PyObject *var);
|
||||
void PyC_LineSpit(void);
|
||||
@@ -38,4 +39,7 @@ int PyC_AsArray(void *array, PyObject *value, int length, PyTypeObject *type,
|
||||
PyObject * PyC_UnicodeFromByte(const char *str);
|
||||
const char * PuC_UnicodeAsByte(PyObject *py_str, PyObject **coerce); /* coerce must be NULL */
|
||||
|
||||
/* name namespace function for bpy & bge */
|
||||
PyObject * PyC_DefaultNameSpace(const char *filename);
|
||||
|
||||
#endif // PY_CAPI_UTILS_H
|
||||
|
Reference in New Issue
Block a user