Preprocessing now errors out if extra tokens appear after #else and #end. Add preprocessor errors when preprocessor expressions are missing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7ad6066fdf
commit
efd06d0668
7 changed files with 132 additions and 32 deletions
22
Examples/test-suite/errors/pp_macro_missing_expression.i
Normal file
22
Examples/test-suite/errors/pp_macro_missing_expression.i
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// Test "Missing identifier for ..." errrors
|
||||
%module xxx
|
||||
|
||||
#ifdef
|
||||
#endif
|
||||
|
||||
#ifndef
|
||||
#endif
|
||||
|
||||
#if
|
||||
#endif
|
||||
|
||||
#if defined(AAA)
|
||||
#elif
|
||||
#endif
|
||||
|
||||
|
||||
#define BBB
|
||||
|
||||
#if !defined(BBB)
|
||||
#elif
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue