scilab: add a delete in struct example

This commit is contained in:
Simon Marchetto 2014-04-02 11:26:56 +02:00
commit ca69e5e405

View file

@ -2,11 +2,13 @@ lines(0);
ilib_verbose(0);
exec loader.sce;
//create a struct
a=new_Bar();
Bar_x_set(a,100);
// Test use of a struct (Bar)
a = new_Bar();
Bar_x_set(a, 100);
printf("a.x = %d (Sould be 100)\n", Bar_x_get(a));
delete_Bar(a);
exit