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:
parent
8438e30b02
commit
54860c9595
6 changed files with 505 additions and 295 deletions
|
|
@ -1,3 +1,7 @@
|
|||
/*
|
||||
* NOTE: this won't run with -noexcept flag
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "example_proxy.h"
|
||||
|
|
|
|||
12
Examples/test-suite/c/cast_operator_runme.c
Normal file
12
Examples/test-suite/c/cast_operator_runme.c
Normal 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);
|
||||
}
|
||||
|
||||
11
Examples/test-suite/c/enums_runme.c
Normal file
11
Examples/test-suite/c/enums_runme.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#include "enums/enums_proxy.h"
|
||||
|
||||
int main() {
|
||||
bar2(1);
|
||||
bar3(1);
|
||||
bar1(1);
|
||||
SWIG_exit(0);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue