swig/Examples/scilab/funcptr/runme.sci
2009-07-30 09:41:11 +00:00

20 lines
325 B
Scilab

// builder the *.so
exec builder.sce;
// loader the *.so
exec loader.sce;
a = 37
b = 42
// Now call our C function with a bunch of callbacks
printf("Trying some C callback functions\n");
printf(" a = %i\n", a);
printf(" b = %i\n", b);
printf(" ADD(a,b) = %i\n", do_op(a,b,funcvar_get()));
exit