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
|
|
@ -3,11 +3,11 @@
|
|||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
MyClass *mc = new_MyClass();
|
||||
MyClass *mc = MyClass_new();
|
||||
|
||||
assert(MyClass_someMethod(mc) == 42);
|
||||
|
||||
delete_MyClass(mc);
|
||||
MyClass_delete(mc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue