Use Foo_{new,delete}() instead of {new,delete}_Foo() to ensure that all
methods of the class Foo start with the corresponding prefix.
14 lines
210 B
C
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;
|
|
}
|