scilab: display loading errors in examples
This commit is contained in:
parent
af822c640c
commit
2bcd768909
14 changed files with 71 additions and 14 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
|
|
||||||
// ----- Object creation -----
|
// ----- Object creation -----
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
example_Init();
|
example_Init();
|
||||||
|
|
||||||
printf("\nTest constants\n");
|
printf("\nTest constants\n");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
// Call our gcd() function
|
// Call our gcd() function
|
||||||
x = 42;
|
x = 42;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
example_Init();
|
example_Init();
|
||||||
|
|
||||||
printf("\nTest enums\n");
|
printf("\nTest enums\n");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
|
|
||||||
a = 37
|
a = 37
|
||||||
b = 42
|
b = 42
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
|
|
||||||
// create a new matrix
|
// create a new matrix
|
||||||
x = new_matrix();
|
x = new_matrix();
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
|
|
||||||
// Test lib double matrix functions
|
// Test lib double matrix functions
|
||||||
disp("Call lib function getDoubleMatrix()");
|
disp("Call lib function getDoubleMatrix()");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
|
|
||||||
// First create some objects using the pointer library.
|
// First create some objects using the pointer library.
|
||||||
printf("Testing the pointer library\n")
|
printf("Testing the pointer library\n")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
|
|
||||||
// Call our gcd() function
|
// Call our gcd() function
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
example_Init();
|
example_Init();
|
||||||
|
|
||||||
// This example shows how to use C++ fonctions with STL lists arguments
|
// This example shows how to use C++ fonctions with STL lists arguments
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
example_Init();
|
example_Init();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
|
|
||||||
// Test use of a struct (Bar)
|
// Test use of a struct (Bar)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
example_Init();
|
example_Init();
|
||||||
|
|
||||||
// Call some templated functions
|
// Call some templated functions
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
lines(0);
|
lines(0);
|
||||||
ilib_verbose(0);
|
ilib_verbose(0);
|
||||||
exec loader.sce;
|
ierr = exec('loader.sce', 'errcatch');
|
||||||
|
if ierr <> 0 then
|
||||||
|
disp(lasterror());
|
||||||
|
exit(ierr);
|
||||||
|
end
|
||||||
|
|
||||||
// Try to set the values of some global variables
|
// Try to set the values of some global variables
|
||||||
ivar_set(42);
|
ivar_set(42);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue