Changes Octave module loading behavior, so that modules can be safely loaded inside functions without first being loaded at the base level. (Basically the module is now always loaded in the base context, and then a local link to the module is created in the current context.) Added an example, module_load, to Examples/octave to test this behaviour in different ways. Tested examples work for octave 3.0.5, 3.2.4, and 3.4.0. (thanks to Karl Wette)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12793 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b61ccd00ec
commit
3372c2ba62
12 changed files with 251 additions and 79 deletions
5
Examples/octave/module_load/example.h
Normal file
5
Examples/octave/module_load/example.h
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/* File: example.h */
|
||||
|
||||
extern int ivar;
|
||||
|
||||
int ifunc();
|
||||
Loading…
Add table
Add a link
Reference in a new issue