Fixes to comply with with ISO/IEC 14882:1998(E) 17.4.3.1.2 :

_SWIG_Exception => SWIG_Exception_


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5142 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-09-23 21:13:27 +00:00
commit cd940e3a13

View file

@ -46,7 +46,7 @@
#ifdef SWIGPYTHON
%{
static void _SWIG_exception(int code, const char *msg) {
static void SWIG_exception_(int code, const char *msg) {
switch(code) {
case SWIG_MemoryError:
PyErr_SetString(PyExc_MemoryError,msg);
@ -84,13 +84,13 @@ static void _SWIG_exception(int code, const char *msg) {
}
}
#define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
#define SWIG_exception(a,b) { SWIG_exception_(a,b); SWIG_fail; }
%}
#endif
#ifdef SWIGGUILE
%{
static void _SWIG_exception (int code, const char *msg,
static void SWIG_exception_ (int code, const char *msg,
const char *subr) {
#define ERROR(scmerr) \
scm_error(gh_symbol2scm((char *) (scmerr)), \
@ -118,14 +118,14 @@ static void _SWIG_exception(int code, const char *msg) {
#undef MAP
}
#define SWIG_exception(a,b) _SWIG_exception(a, b, FUNC_NAME)
#define SWIG_exception(a,b) SWIG_exception_(a, b, FUNC_NAME)
%}
#endif
#ifdef SWIGMZSCHEME
%{
static void _SWIG_exception (int code, const char *msg) {
static void SWIG_exception_ (int code, const char *msg) {
#define ERROR(errname) \
scheme_signal_error(errname " (%s)", msg);
#define MAP(swigerr, errname) \
@ -150,7 +150,7 @@ static void _SWIG_exception(int code, const char *msg) {
#undef MAP
}
#define SWIG_exception(a,b) _SWIG_exception(a, b)
#define SWIG_exception(a,b) SWIG_exception_(a, b)
%}
#endif
@ -195,18 +195,18 @@ static void SWIG_JavaException(JNIEnv *jenv, int code, const char *msg) {
#ifdef SWIGOCAML
%{
#define OCAML_MSG_BUF_LEN 1024
static void _SWIG_exception(int code, const char *msg) {
static void SWIG_exception_(int code, const char *msg) {
char msg_buf[OCAML_MSG_BUF_LEN];
sprintf( msg_buf, "Exception(%d): %s\n", code, msg );
failwith( msg_buf );
}
#define SWIG_exception(a,b) _SWIG_exception((a),(b))
#define SWIG_exception(a,b) SWIG_exception_((a),(b))
%}
#endif
#ifdef SWIGRUBY
%{
static void _SWIG_exception(int code, const char *msg) {
static void SWIG_exception_(int code, const char *msg) {
switch (code) {
case SWIG_MemoryError:
rb_raise(rb_eNoMemError, msg);
@ -246,14 +246,14 @@ static void _SWIG_exception(int code, const char *msg) {
}
}
#define SWIG_exception(a, b) _SWIG_exception((a), (b))
#define SWIG_exception(a, b) SWIG_exception_((a), (b))
%}
#endif
#ifdef SWIGCHICKEN
%{
#define CHICKEN_MSG_BUF_LEN 1024
static void _SWIG_exception(int code, const char *msg) {
static void SWIG_exception_(int code, const char *msg) {
char msg_buf[CHICKEN_MSG_BUF_LEN];
C_word *a;
C_word scmmsg;
@ -264,7 +264,7 @@ static void _SWIG_exception(int code, const char *msg) {
scmmsg = C_string2 (&a, msg_buf);
C_halt (scmmsg);
}
#define SWIG_exception(a,b) _SWIG_exception((a),(b))
#define SWIG_exception(a,b) SWIG_exception_((a),(b))
%}
#endif