Skip to content

Commit

Permalink
[MATLAB] Issue #66: Fix for multiple modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeandersson committed Feb 24, 2016
1 parent b921b0e commit fed33f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Modules/matlab.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2609,13 +2609,14 @@ int MATLAB::insertDirective(Node *n) {
String *code = Getattr(n, "code");
String *section = Getattr(n, "section");

if (Cmp(section, "matlab") == 0) {
if (Cmp(section, "matlab") == 0 && f_wrap_m) {
Printv(f_wrap_m, code, NIL);
} else if (Cmp(section, "matlabsetup") == 0) {
Printv(f_setup_m, code, NIL);
} else {
Language::insertDirective(n);
}

return SWIG_OK;
}

Expand Down

0 comments on commit fed33f8

Please sign in to comment.