Error out attempting to use directors without -c++
Remove redundant #ifdef __cplusplus markers in director.swg
This commit is contained in:
parent
135a7cc558
commit
1a19451c1b
10 changed files with 4 additions and 34 deletions
|
|
@ -2024,6 +2024,9 @@ module_directive: MODULE options idstring {
|
|||
Setattr($$,"options",$2);
|
||||
if (Getattr($2,"directors")) {
|
||||
Wrapper_director_mode_set(1);
|
||||
if (!cparse_cplusplus) {
|
||||
Swig_error(cparse_file, cparse_line, "Directors are not supported for C code and require the -c++ option\n");
|
||||
}
|
||||
}
|
||||
if (Getattr($2,"dirprot")) {
|
||||
Wrapper_director_protected_mode_set(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue