(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
|
||
|---|---|---|
| .. | ||
| .cvsignore | ||
| cpp.c | ||
| expr.c | ||
| Makefile.in | ||
| preprocessor.h | ||