swig/Examples/scilab/struct/runme.sci
Vincent Couvert a8b8b6c5d4 * New version for Scilab module using fragments
* A C and CPP tests generate and compile except tests using vectors (to be done)



git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12698 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-05-20 08:34:46 +00:00

11 lines
143 B
Scilab

//loader the *.so
exec loader.sce
//create a struct
a=new_Bar();
Bar_x_set(a,100);
printf("a.x = %d (Sould be 100)\n", Bar_x_get(a));
exit