Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-25 07:36:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-25 07:36:10 +0300
commita21f46b6d43c3743b96515e9733faf78d70c36ed (patch)
tree2378b9cc22ce2337c3fc2a966c2fafc16d64d344 /source/blender/makesrna/RNA_access.h
parent16e736b7db3ef3597e22f55e7b26416ee562a418 (diff)
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
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r--source/blender/makesrna/RNA_access.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h
index 076aa199766..e67728def11 100644
--- a/source/blender/makesrna/RNA_access.h
+++ b/source/blender/makesrna/RNA_access.h
@@ -955,6 +955,12 @@ int RNA_function_call_direct_va_lookup(struct bContext *C, struct ReportList *re
short RNA_type_to_ID_code(StructRNA *type);
StructRNA *ID_code_to_RNA_type(short idcode);
+void RNA_warning(const char *format, ...)
+#ifdef __GNUC__
+__attribute__ ((format (printf, 1, 2)))
+#endif
+;
+
#ifdef __cplusplus
}
#endif