Error out attempting to use directors without -c++

Remove redundant #ifdef __cplusplus markers in director.swg
This commit is contained in:
William S Fulton 2013-12-23 20:23:54 +00:00
commit 1a19451c1b
10 changed files with 4 additions and 34 deletions

View file

@ -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);