Make default #error behaviour as expected instead of like #warning.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8566 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-01-26 21:33:15 +00:00
commit 0b88adaf9d

View file

@ -30,8 +30,7 @@ static int single_include = 1; /* Only include each file once */
static Hash *included_files = 0;
static List *dependencies = 0;
static SwigScanner *id_scan = 0;
static int error_as_warning = 1; /* Understand the cpp #error
directive as a special #warning */
static int error_as_warning = 0; /* Understand the cpp #error directive as a special #warning */
/* Test a character to see if it starts an identifier */
#define isidentifier(c) ((isalpha(c)) || (c == '_') || (c == '$'))