swig/Examples/test-suite/c/cpp_basic_class_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

11 lines
175 B
C

#include "cpp_basic_class/cpp_basic_class_wrap.h"
int main(int argc, const char *argv[])
{
MyClass *mc;
mc = MyClass_new();
MyClass_delete(mc);
return 0;
}