Redefine SWIG_Error and add testing code in examples\scilab\contract

This commit is contained in:
Yung Lee 2013-04-29 20:16:36 +08:00
commit 680374f251
2 changed files with 53 additions and 4 deletions

View file

@ -23,6 +23,14 @@ Foo_set (3.1415926);
// See if the change took effect
printf("Foo = %f\n", Foo_get());
printf("Foo = %f\n", Foo_get());
// Check error message if violate contract
g = gcd(-42,105);
fact(-4);
exit