Use Foo_{new,delete}() instead of {new,delete}_Foo() to ensure that all
methods of the class Foo start with the corresponding prefix.
11 lines
233 B
C
11 lines
233 B
C
#include "cpp_basic_namespaced_class/cpp_basic_namespaced_class_wrap.h"
|
|
|
|
int main(int argc, const char *argv[])
|
|
{
|
|
myNamespace_MyClass *mc;
|
|
mc = myNamespace_MyClass_new();
|
|
|
|
myNamespace_MyClass_delete(mc);
|
|
|
|
return 0;
|
|
}
|