Remove SWIG_MAKE_DELETE() macro from C runtime
This doesn't seem to be necessary nor even useful at all, just get rid of it completely and expand it manually in the only place where it was used.
This commit is contained in:
parent
a1fedd5202
commit
e8ec13f56b
2 changed files with 3 additions and 18 deletions
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
#define assert(x,msg) if (!x) { printf("%d: %s\n", x, msg); SWIG_exit(0); }
|
||||
|
||||
SWIG_MAKE_DELETE(delete_Ops, Op);
|
||||
|
||||
int main() {
|
||||
Op_sanity_check();
|
||||
|
||||
|
|
@ -20,6 +18,8 @@ int main() {
|
|||
assert(3 == *Op_IndexInto(op3, Op_IndexIntoConst(op2, Op_Functor_pOp(op1))), "[] or () failed");
|
||||
assert(5 == Op_Functor_pOp_i(op3, 2), "f(x) failed");
|
||||
|
||||
delete_Ops(op1, op2, op3, 0);
|
||||
delete_Op(op1);
|
||||
delete_Op(op2);
|
||||
delete_Op(op3);
|
||||
SWIG_exit(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue