2. -noexcept flag disables generating exception-related code (like array of type names in SwigObj, object registry, etc.). This can be used when we are sure we won't handle exceptions on the C side, and this will generate much less code. 3. Modified typemaps for object arrays. Multidimensional ones still needs some fixing. 4. Added 'enums' and 'cast_operator' runtime tests. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
12 lines
216 B
C
12 lines
216 B
C
#include <stdio.h>
|
|
|
|
#include "cast_operator/cast_operator_proxy.h"
|
|
|
|
int main() {
|
|
A *a = new_A();
|
|
if (strcmp(A_tochar(a), "hi"))
|
|
fprintf(stderr, "cast failed\n");
|
|
delete_A(a);
|
|
SWIG_exit(0);
|
|
}
|
|
|