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:
parent
b24665fa6a
commit
bda731cd8f
23 changed files with 95 additions and 87 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue