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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-03-15 02:17:55 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-03-15 02:17:55 +0300
commitcc59417cae9de2c08900d76b3d9cfb6683e530b2 (patch)
tree5debe30cc15a8908ca35430bc7daf754da3450ec /source/blender/makesrna/RNA_define.h
parente7e655ce746039601d8ecc3896db744e81c4dea8 (diff)
RNA:
- Added an autogenerated C++ API, basically a simple layer over the C API, but with the advantage that it fits the object oriented RNA model better. Read-only still like the C API. - Had to rename "protected" property in Action Group because it is a C++ keyword, called it "locked" since that seems more consistent anyway? - It's not used anywhere, so here's some example code I used to test it, to get an idea of how it would be used: http://pasteall.org/4582/cpp - Also, ID names are now editable.
Diffstat (limited to 'source/blender/makesrna/RNA_define.h')
-rw-r--r--source/blender/makesrna/RNA_define.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/makesrna/RNA_define.h b/source/blender/makesrna/RNA_define.h
index d80a4e4573e..406b8f894ba 100644
--- a/source/blender/makesrna/RNA_define.h
+++ b/source/blender/makesrna/RNA_define.h
@@ -33,6 +33,10 @@
#include "DNA_listBase.h"
#include "RNA_types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Blender RNA */
BlenderRNA *RNA_create(void);
@@ -146,6 +150,9 @@ void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const cha
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set);
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring);
-#endif /* RNA_DEFINE_H */
+#ifdef __cplusplus
+}
+#endif
+#endif /* RNA_DEFINE_H */