Add test that __cplusplus isn't defined in C mode

This commit is contained in:
Olly Betts 2023-05-18 12:41:47 +12:00
parent da8d7f0ec3
commit 1782a70a5e
1 changed files with 5 additions and 0 deletions

View File

@ -65,6 +65,11 @@
# error __STDC__ value not 1 at SWIG-time
#endif
/* Test that __cplusplus isn't defined (this testcase is processed as C). */
#ifdef __cplusplus
# error __cplusplus defined in C mode
#endif
/* Test that SWIGxxx is defined at SWIG-time and in the wrapper. */
%include "preproc_predefined.h"
%{