add support for Enums
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11288 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4e9cbd8a7c
commit
ed84d6b162
19 changed files with 865 additions and 222 deletions
|
|
@ -1,32 +1,22 @@
|
|||
// builder the *.so
|
||||
exec builder.sce;
|
||||
exec example.sce;
|
||||
|
||||
//loader the *.so
|
||||
exec loader.sce;
|
||||
|
||||
printf("ICONST = %i (should be 42)\n", ICONST());
|
||||
printf("FCONST = %f (should be 2.1828)\n", FCONST());
|
||||
printf("CCONST = %c (should be x)\n", CCONST());
|
||||
printf("CCONST2 = %s (this should be on a new line)\n", CCONST2());
|
||||
printf("SCONST = %s (should be Hello World)\n", SCONST());
|
||||
printf("SCONST2 = %s (should be Hello World)\n", SCONST2());
|
||||
printf("EXPR = %f (should be 48.5484)\n", EXPR());
|
||||
printf("iconst = %i (should be 37)\n", iconst());
|
||||
printf("fconst = %f (should be 3.14)\n", fconst());
|
||||
printf("ICONST = %i (should be 42)\n", example.ICONST);
|
||||
printf("FCONST = %f (should be 2.1828)\n",example. FCONST);
|
||||
printf("CCONST = %c (should be ''x'')\n", example.CCONST);
|
||||
printf("CCONST2 = %s (this should be on a new line)\n", example.CCONST2);
|
||||
printf("SCONST = %s (should be ''Hello World'')\n", example.SCONST);
|
||||
printf("SCONST2 = %s (should be "'""Hello World"""')\n", example.SCONST2);
|
||||
printf("EXPR = %f (should be 48.5484)\n",example.EXPR);
|
||||
printf("iconst = %i (should be 37)\n", example.iconst);
|
||||
printf("fconst = %f (should be 3.14)\n", example.fconst);
|
||||
|
||||
try
|
||||
printf("EXTERN = %s (Arg! This should not printf(anything)\n", EXTERN());
|
||||
printf("EXTERN = %s (Arg! This should not printf(anything)\n", example.EXTERN);
|
||||
catch
|
||||
printf("EXTERN is not defined (good)\n");
|
||||
|
||||
printf("EXTERN is not defined (good)\n");
|
||||
end
|
||||
try
|
||||
printf("FOO = %i (Arg! This should not printf(anything)\n", FOO());
|
||||
printf("FOO = %i (Arg! This should not printf(anything)\n", example.FOO);
|
||||
catch
|
||||
printf("FOO is not defined (good)\n");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
printf("FOO is not defined (good)\n");
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue