mirror of https://github.com/swig/swig
Add test that __cplusplus isn't defined in C mode
This commit is contained in:
parent
da8d7f0ec3
commit
1782a70a5e
|
@ -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"
|
||||
%{
|
||||
|
|
Loading…
Reference in New Issue