scilab: runtime initialization needed in examples

This commit is contained in:
simon 2016-03-08 17:35:08 +01:00
commit 54b84b8fa1
9 changed files with 9 additions and 1 deletions

View file

@ -5,6 +5,7 @@ if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
// ----- Object creation -----

View file

@ -5,7 +5,7 @@ if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
// Call our gcd() function
x = 42;

View file

@ -5,6 +5,7 @@ if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
a = 37
b = 42

View file

@ -5,6 +5,7 @@ if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
// create a new matrix
x = new_matrix();

View file

@ -5,6 +5,7 @@ if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
// Test lib double matrix functions
disp("Call lib function getDoubleMatrix()");

View file

@ -5,6 +5,7 @@ if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
// First create some objects using the pointer library.
printf("Testing the pointer library\n")

View file

@ -5,6 +5,7 @@ if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
// Call our gcd() function

View file

@ -5,6 +5,7 @@ if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
// Test use of a struct (Bar)

View file

@ -5,6 +5,7 @@ if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
// Try to set the values of some global variables
ivar_set(42);