| 51 | } |
| 52 | |
| 53 | uint32_t GDScriptByteCodeGenerator::add_local(const StringName &p_name, const GDScriptDataType &p_type) { |
| 54 | int stack_pos = locals.size() + GDScriptFunction::FIXED_ADDRESSES_MAX; |
| 55 | locals.push_back(StackSlot(p_type.builtin_type, p_type.can_contain_object())); |
| 56 | add_stack_identifier(p_name, stack_pos); |
| 57 | return stack_pos; |
| 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); |
no test coverage detected