Change naming convention for wrapped ctors and dtor

Use Foo_{new,delete}() instead of {new,delete}_Foo() to ensure that all
methods of the class Foo start with the corresponding prefix.
This commit is contained in:
Vadim Zeitlin 2016-04-22 19:20:20 +02:00
commit bda731cd8f
23 changed files with 95 additions and 87 deletions

View file

@ -2,12 +2,12 @@
#include "cpp_basic_template_class/cpp_basic_template_class_wrap.h"
int main() {
MyTemplateClass_Int *ci = new_MyTemplateClass_Int();
MyTemplateClass_Int *ci = MyTemplateClass_Int_new();
MyTemplateClass_Int_someMemberVariable_set(ci, 42);
assert(MyTemplateClass_Int_someMemberVariable_get(ci) == 42);
delete_MyTemplateClass_Int(ci);
MyTemplateClass_Int_delete(ci);
return 0;
}