1. Fixed the bug in enums. Now 'enums' test is compiling OK.

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
This commit is contained in:
Maciej Drwal 2008-08-17 13:42:19 +00:00
commit 54860c9595
6 changed files with 505 additions and 295 deletions

View file

@ -1,3 +1,7 @@
/*
* NOTE: this won't run with -noexcept flag
*/
#include <stdio.h>
#include "example_proxy.h"

View file

@ -0,0 +1,12 @@
#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);
}

View file

@ -0,0 +1,11 @@
#include <stdio.h>
#include "enums/enums_proxy.h"
int main() {
bar2(1);
bar3(1);
bar1(1);
SWIG_exit(0);
}