MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / AddClassEnd

Method AddClassEnd

src/script/squirrel.cpp:315–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void Squirrel::AddClassEnd()
316{
317 ScriptAllocatorScope alloc_scope(this);
318
319 sq_newslot(vm, -3, SQFalse);
320 sq_pop(vm, 1);
321}
322
323bool Squirrel::MethodExists(HSQOBJECT instance, std::string_view method_name)
324{

Callers 3

RegisterAPIMethod · 0.80
PostRegisterMethod · 0.80
RegisterAPIMethod · 0.80

Calls 2

sq_newslotFunction · 0.85
sq_popFunction · 0.85

Tested by

no test coverage detected