| 58 | } |
| 59 | |
| 60 | uint32_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 | |
| 66 | uint32_t GDScriptByteCodeGenerator::add_or_get_constant(const Variant &p_constant) { |
| 67 | return get_constant_pos(p_constant); |