Use Foo_{new,delete}() instead of {new,delete}_Foo() to ensure that all
methods of the class Foo start with the corresponding prefix.
12 lines
184 B
C
12 lines
184 B
C
#include "abstract_access/abstract_access_wrap.h"
|
|
#include <assert.h>
|
|
|
|
int main(int argc, const char *argv[]) {
|
|
D *d = D_new();
|
|
|
|
assert(D_do_x(d) == 1);
|
|
|
|
D_delete(d);
|
|
|
|
return 0;
|
|
}
|