summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2021-04-21 16:55:39 +1200
committerOlly Betts <olly@survex.com>2021-04-21 18:16:56 +1200
commit3f9723b896935f1edaa3ef791252a098e037e8c8 (patch)
treea5f126e058fc040f8f1d48bed39b49f202987886
parent49d5909b083e321eafb513af15798281e21a8d83 (diff)
downloadswig-3f9723b896935f1edaa3ef791252a098e037e8c8.tar.gz
Use PTR instead of zv for SWIG_remove() parameter
The parameter is a general pointer, not necessarily a zval.
-rw-r--r--Source/Modules/php.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx
index b30f57076..9caaf03b4 100644
--- a/Source/Modules/php.cxx
+++ b/Source/Modules/php.cxx
@@ -442,8 +442,8 @@ public:
Printf(s_header, "}\n");
Printf(s_header, "#endif\n\n");
- Printf(s_header, "#ifdef __cplusplus\n#define SWIG_remove(zv) delete zv\n");
- Printf(s_header, "#else\n#define SWIG_remove(zv) free(zv)\n#endif\n\n");
+ Printf(s_header, "#ifdef __cplusplus\n#define SWIG_remove(PTR) delete PTR\n");
+ Printf(s_header, "#else\n#define SWIG_remove(PTR) free(PTR)\n#endif\n\n");
if (directorsEnabled()) {
// Insert director runtime