new function RNA_warning(), replaces printf with function which may be called via python.

Now this gives the line number of the scripts thats running, eg:

uiItemFullO: unknown operator 'some.operator'
/c/bin/2.56/scripts/startup/bl_ui/space_view3d_toolbar.py:73
This commit is contained in:
2011-03-25 04:36:10 +00:00
parent 16e736b7db
commit a21f46b6d4
7 changed files with 86 additions and 38 deletions

View File

@@ -47,4 +47,5 @@ void PyC_RunQuicky(const char *filepath, int n, ...);
void PyC_MainModule_Backup(PyObject **main_mod);
void PyC_MainModule_Restore(PyObject *main_mod);
#endif // PY_CAPI_UTILS_H