summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-09-17 10:03:25 -0500
committerDavid Snopek <dsnopek@gmail.com>2024-09-17 10:03:25 -0500
commit17ca325aebd120573209044879ae7ade3d474a2a (patch)
tree6730f841133d57c634f315edadfdbfc60645fe23
parentfbbf9ec4efd8f1055d00edb8d926eef8ba4c2cce (diff)
downloadredot-cpp-17ca325aebd120573209044879ae7ade3d474a2a.tar.gz
Revert "Unexpose `UtilityFunctions::is_instance_valid()`"
This reverts commit 56cd3fd99eb76ca3da33dafb694828a7306b2c81.
-rw-r--r--binding_generator.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/binding_generator.py b/binding_generator.py
index e7609b2..754167f 100644
--- a/binding_generator.py
+++ b/binding_generator.py
@@ -2166,12 +2166,6 @@ def generate_utility_functions(api, output_dir):
header.append("public:")
for function in api["utility_functions"]:
- if function["name"] == "is_instance_valid":
- # The `is_instance_valid()` function doesn't work as developers expect, and unless used very
- # carefully will cause crashes. Instead, developers should use `ObjectDB::get_instance()`
- # with object ids to ensure that an instance is still valid.
- continue
-
vararg = "is_vararg" in function and function["is_vararg"]
function_signature = "\t"
@@ -2206,9 +2200,6 @@ def generate_utility_functions(api, output_dir):
source.append("")
for function in api["utility_functions"]:
- if function["name"] == "is_instance_valid":
- continue
-
vararg = "is_vararg" in function and function["is_vararg"]
function_signature = make_signature("UtilityFunctions", function)