diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-12-23 00:06:27 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-12-23 00:06:27 +0000 |
commit | ae09b70a40bc87a1c1aff654bcca8695cda129e4 (patch) | |
tree | bf17f1d9a4c3de1ffe63eda004f8771ac902f666 /Lib/swigrun.swg | |
parent | 5b34d656e6413a6a55e344f2c259b15e4bef8046 (diff) | |
download | swig-ae09b70a40bc87a1c1aff654bcca8695cda129e4.tar.gz |
changes to support cast ranking for dispatch and/or overloading
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8044 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/swigrun.swg')
-rw-r--r-- | Lib/swigrun.swg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/swigrun.swg b/Lib/swigrun.swg index bd79d552b..af2999a73 100644 --- a/Lib/swigrun.swg +++ b/Lib/swigrun.swg @@ -57,6 +57,12 @@ #define SWIG_OK 0 #define SWIG_ERROR -1 +/* Flags to manage cast and return states */ +#define SWIG_MAX_CAST_RANK 4 +#define SWIG_IsOK(r) (r >= 0) +#define SWIG_AddCast(r) (SWIG_IsOK(r) ? (r + 1) : r) +#define SWIG_GetCastRank(r) (SWIG_IsOK(r) ? ((r < SWIG_MAX_CAST_RANK) ? (r + 1) : 0) : 0) + #include <string.h> |