diff options
author | Dave Beazley <dave-swig@dabeaz.com> | 2000-09-26 03:00:55 +0000 |
---|---|---|
committer | Dave Beazley <dave-swig@dabeaz.com> | 2000-09-26 03:00:55 +0000 |
commit | ecd8d72ef5c734d1b03510d74fd0c2fdb275cd89 (patch) | |
tree | 2bd7bf35d24683e810f8db924dd406e44fa8f91d /CHANGES | |
parent | 8413325366d2ad50f885901eb7fe71ed262ec98e (diff) | |
download | swig-ecd8d72ef5c734d1b03510d74fd0c2fdb275cd89.tar.gz |
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
Diffstat (limited to 'CHANGES')
0 files changed, 0 insertions, 0 deletions