RNA: remove static strings from registration

* Static strings aren't needed anymore, use stack memory.
* Fix obscure leak on failed macro registration.
* Use prefix for wrappers exported from bpy module.
This commit is contained in:
2017-06-09 07:13:35 +10:00
parent 46c073e4ac
commit 8a757bf34a
4 changed files with 361 additions and 344 deletions

View File

@@ -118,7 +118,7 @@ static void operator_properties_init(wmOperatorType *ot)
}
void operator_wrapper(wmOperatorType *ot, void *userdata)
void BPY_RNA_operator_wrapper(wmOperatorType *ot, void *userdata)
{
/* take care not to overwrite anything set in
* WM_operatortype_append_ptr before opfunc() is called */
@@ -134,7 +134,7 @@ void operator_wrapper(wmOperatorType *ot, void *userdata)
operator_properties_init(ot);
}
void macro_wrapper(wmOperatorType *ot, void *userdata)
void BPY_RNA_operator_macro_wrapper(wmOperatorType *ot, void *userdata)
{
wmOperatorType *data = (wmOperatorType *)userdata;