swig/Examples/test-suite/c/add_link_runme.c
Vadim Zeitlin bda731cd8f 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.
2016-09-15 01:27:40 +02:00

14 lines
210 B
C

#include "add_link/add_link_wrap.h"
#include <assert.h>
int main(int argc, const char *argv[]) {
Foo *f = Foo_new();
Foo *f2 = Foo_blah(f);
assert(f2 != 0);
Foo_delete(f);
Foo_delete(f2);
return 0;
}