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
203 B
C
12 lines
203 B
C
#include <stdio.h>
|
|
|
|
#include "cast_operator/cast_operator_wrap.h"
|
|
|
|
int main() {
|
|
A *a = A_new();
|
|
if (strcmp(A_tochar(a), "hi"))
|
|
fprintf(stderr, "cast failed\n");
|
|
A_delete(a);
|
|
SWIG_exit(0);
|
|
}
|
|
|