diff options
author | Bastiaan Olij <mux213@gmail.com> | 2018-11-22 21:29:44 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-22 21:29:44 +1100 |
commit | 8ffda12b83f3ba22cb4cfa785f5931c15b6897c0 (patch) | |
tree | 122b8c703718a85e0be87836d8572ab9b3c54273 /binding_generator.py | |
parent | 5f3d6bc233c0d510546986a937a23d6ca11e5154 (diff) | |
parent | 715d1dc82b2860d5bb9e13631c61f1cbd814e0ec (diff) | |
download | redot-cpp-8ffda12b83f3ba22cb4cfa785f5931c15b6897c0.tar.gz |
Merge pull request #201 from bruvzg/ptrcall_fix_null_args
Fix passing NULL pointers as arguments via ptrcall
Diffstat (limited to 'binding_generator.py')
-rw-r--r-- | binding_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binding_generator.py b/binding_generator.py index c26c9eb..16db7eb 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -625,7 +625,7 @@ def generate_icall_implementation(icalls): if is_primitive(arg) or is_core_type(arg): wrapped_argument += "(void *) &arg" + str(i) else: - wrapped_argument += "(void *) arg" + str(i) + "->_owner" + wrapped_argument += "(void *) (arg" + str(i) + ") ? arg" + str(i) + "->_owner : nullptr" wrapped_argument += "," source.append(wrapped_argument) |