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

Method add_local_constant

modules/gdscript/gdscript_byte_codegen.cpp:60–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60uint32_t GDScriptByteCodeGenerator::add_local_constant(const StringName &p_name, const Variant &p_constant) {
61 int index = add_or_get_constant(p_constant);
62 local_constants[p_name] = index;
63 return index;
64}
65
66uint32_t GDScriptByteCodeGenerator::add_or_get_constant(const Variant &p_constant) {
67 return get_constant_pos(p_constant);

Callers 1

_parse_blockMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected