git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@11515 626c5289-ae23-0410-ae9c-e8d60b6d4f22
19 lines
378 B
Scilab
19 lines
378 B
Scilab
// loader the *.so
|
|
exec loader.sce;
|
|
|
|
// Print out the value of some enums
|
|
printf("*** color ***\n");
|
|
printf(" RED = %i\n", RED_get());
|
|
printf(" BLUE = %i\n", BLUE_get());
|
|
printf(" GREEN = %i\n", GREEN_get());
|
|
|
|
|
|
printf("\nTesting use of enums with functions\n");
|
|
|
|
enum_test(RED_get());
|
|
enum_test(BLUE_get());
|
|
enum_test(GREEN_get());
|
|
enum_test(int32(1234));
|
|
|
|
exit
|
|
|