mirror of https://github.com/swig/swig
settle for an abort
This commit is contained in:
parent
360775cb8e
commit
33696cbf56
|
@ -6,7 +6,10 @@
|
|||
static const char* hi = "hello";
|
||||
$1 = const_cast<char *>(hi);
|
||||
unique++;
|
||||
if (unique != 1) SWIG_exception_fail(SWIG_ERROR, "in typemap applied more than once");
|
||||
if (unique != 1) {
|
||||
fprintf(stderr, "in typemap applied more than once\n");
|
||||
abort();
|
||||
}
|
||||
}
|
||||
%typemap(in,numinputs=0) int bb "$1 = 101; called_argout = 0;"
|
||||
%typemap(in,numinputs=0) double ccc "$1 = 8.8;"
|
||||
|
|
Loading…
Reference in New Issue