put the common error labels in a more public place, visible from java/C# and the rest
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7687 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
98d98784ae
commit
08176a361a
2 changed files with 17 additions and 18 deletions
|
|
@ -64,3 +64,20 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
/* Error labels */
|
||||
#define SWIG_OK 0
|
||||
#define SWIG_ERROR -1
|
||||
|
||||
#define SWIG_MemoryError 1
|
||||
#define SWIG_IOError 2
|
||||
#define SWIG_RuntimeError 3
|
||||
#define SWIG_IndexError 4
|
||||
#define SWIG_TypeError 5
|
||||
#define SWIG_DivisionByZero 6
|
||||
#define SWIG_OverflowError 7
|
||||
#define SWIG_SyntaxError 8
|
||||
#define SWIG_ValueError 9
|
||||
#define SWIG_SystemError 10
|
||||
#define SWIG_AttributeError 11
|
||||
#define SWIG_UnknownError 99
|
||||
|
|
|
|||
|
|
@ -51,24 +51,6 @@
|
|||
#define SWIG_OLDOBJ 1
|
||||
#define SWIG_NEWOBJ 2
|
||||
|
||||
/* Error flags */
|
||||
#define SWIG_OK 0
|
||||
#define SWIG_ERROR -1
|
||||
|
||||
#define SWIG_MemoryError 1
|
||||
#define SWIG_IOError 2
|
||||
#define SWIG_RuntimeError 3
|
||||
#define SWIG_IndexError 4
|
||||
#define SWIG_TypeError 5
|
||||
#define SWIG_DivisionByZero 6
|
||||
#define SWIG_OverflowError 7
|
||||
#define SWIG_SyntaxError 8
|
||||
#define SWIG_ValueError 9
|
||||
#define SWIG_SystemError 10
|
||||
#define SWIG_AttributeError 11
|
||||
#define SWIG_UnknownError 99
|
||||
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue