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

Method get_constant

modules/gdscript/gdscript_function.cpp:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41#include "gdscript.h"
42
43Variant GDScriptFunction::get_constant(int p_idx) const {
44 ERR_FAIL_INDEX_V(p_idx, constants.size(), "<errconst>");
45 return constants[p_idx];
46}
47
48StringName GDScriptFunction::get_global_name(int p_idx) const {
49 ERR_FAIL_INDEX_V(p_idx, global_names.size(), "<errgname>");

Callers 1

_disassemble_addressFunction · 0.45

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected