| 247 | } |
| 248 | |
| 249 | void GDScriptFunctionState::_clear_stack() { |
| 250 | if (state.stack_size) { |
| 251 | Variant *stack = (Variant *)state.stack.ptr(); |
| 252 | // First `GDScriptFunction::FIXED_ADDRESSES_MAX` stack addresses are special |
| 253 | // and not copied to the state, so we skip them here. |
| 254 | for (int i = GDScriptFunction::FIXED_ADDRESSES_MAX; i < state.stack_size; i++) { |
| 255 | stack[i].~Variant(); |
| 256 | } |
| 257 | state.stack_size = 0; |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | void GDScriptFunctionState::_clear_connections() { |
| 262 | List<Object::Connection> conns; |
no test coverage detected