scilab: runtime initialization needed in examples
This commit is contained in:
parent
b9bddada7a
commit
54b84b8fa1
9 changed files with 9 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ if ierr <> 0 then
|
|||
disp(lasterror());
|
||||
exit(ierr);
|
||||
end
|
||||
example_Init();
|
||||
|
||||
// ----- Object creation -----
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ if ierr <> 0 then
|
|||
disp(lasterror());
|
||||
exit(ierr);
|
||||
end
|
||||
|
||||
example_Init();
|
||||
|
||||
// Call our gcd() function
|
||||
x = 42;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ if ierr <> 0 then
|
|||
disp(lasterror());
|
||||
exit(ierr);
|
||||
end
|
||||
example_Init();
|
||||
|
||||
a = 37
|
||||
b = 42
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ if ierr <> 0 then
|
|||
disp(lasterror());
|
||||
exit(ierr);
|
||||
end
|
||||
example_Init();
|
||||
|
||||
// create a new matrix
|
||||
x = new_matrix();
|
||||
|
|
|
|||
|
|
@ -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()");
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ if ierr <> 0 then
|
|||
disp(lasterror());
|
||||
exit(ierr);
|
||||
end
|
||||
example_Init();
|
||||
|
||||
// Call our gcd() function
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ if ierr <> 0 then
|
|||
disp(lasterror());
|
||||
exit(ierr);
|
||||
end
|
||||
example_Init();
|
||||
|
||||
// Test use of a struct (Bar)
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue