settle for an abort

This commit is contained in:
Momtchil Momtchev 2023-07-07 22:09:30 +02:00
parent 360775cb8e
commit 33696cbf56
1 changed files with 4 additions and 1 deletions

View File

@ -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;"