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

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);
}