swig/Source/Preprocessor
Dave Beazley ecd8d72ef5 Modified the preprocessor to allow identifiers to start with "%". This is highly experimental
(I may take it out), but I have this idea that you might be able to create new SWIG directives
as C preprocessor macros.

For example:

#define %check(type) %typemap(check) type

%check(int positive) {
   if ($source < 0) error("hey, what's with this?");
}

(In reality, I think that this feature may allow me to reduce the parser to a smaller
set of more primitive directives that will simplify some of the code maintenance).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@891 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2000-09-26 03:00:55 +00:00
..
.cvsignore 1/28/00 : loic 2000-01-29 01:06:10 +00:00
cpp.c Modified the preprocessor to allow identifiers to start with "%". This is highly experimental 2000-09-26 03:00:55 +00:00
expr.c (Preprocessor_expr_init): Use `void' arg instead of empty list. 2000-05-11 07:52:57 +00:00
Makefile.in {Changes to enable non-local build} 2000-02-26 05:06:40 +00:00
preprocessor.h (Preprocessor_parse): Synch decl w/ definition in cpp.c. 2000-05-11 07:49:25 +00:00