diff options
author | George Marques <george@gmarqu.es> | 2022-12-29 10:47:53 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2023-01-23 11:04:31 -0300 |
commit | 80e06b29e7a245dab024a7a3b6a0692913b05bcc (patch) | |
tree | ddcac898d79526db65ba52618992064698423f4f /modules/gdscript/gdscript_function.h | |
parent | 9937915ad77059b63582ffd4e324afb26f467b76 (diff) | |
download | redot-engine-80e06b29e7a245dab024a7a3b6a0692913b05bcc.tar.gz |
GDScript: Add names for disassembling function pointers
When instructions use function pointers, it's not possible to retrieve
their original names in the disassembly. This stores the names in
vectors (in debug builds) so they can be shown.
Diffstat (limited to 'modules/gdscript/gdscript_function.h')
-rw-r--r-- | modules/gdscript/gdscript_function.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_function.h b/modules/gdscript/gdscript_function.h index 76214f3482..37416a734d 100644 --- a/modules/gdscript/gdscript_function.h +++ b/modules/gdscript/gdscript_function.h @@ -505,6 +505,16 @@ private: Vector<Variant> default_arg_values; #endif +#ifdef DEBUG_ENABLED + Vector<String> operator_names; + Vector<String> setter_names; + Vector<String> getter_names; + Vector<String> builtin_methods_names; + Vector<String> constructors_names; + Vector<String> utilities_names; + Vector<String> gds_utilities_names; +#endif + List<StackDebug> stack_debug; Variant _get_default_variant_for_data_type(const GDScriptDataType &p_data_type); |