diff options
author | Olly Betts <olly@survex.com> | 2021-04-21 16:55:39 +1200 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2021-04-21 18:16:56 +1200 |
commit | 3f9723b896935f1edaa3ef791252a098e037e8c8 (patch) | |
tree | a5f126e058fc040f8f1d48bed39b49f202987886 | |
parent | 49d5909b083e321eafb513af15798281e21a8d83 (diff) | |
download | swig-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.cxx | 4 |
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 |