MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / add_or_get_constant

Method add_or_get_constant

modules/gdscript/gdscript_byte_codegen.cpp:66–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66uint32_t GDScriptByteCodeGenerator::add_or_get_constant(const Variant &p_constant) {
67 return get_constant_pos(p_constant);
68}
69
70uint32_t GDScriptByteCodeGenerator::add_or_get_name(const StringName &p_name) {
71 return get_name_map_pos(p_name);

Callers 1

add_constantMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected