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

Method CreateClassInstance

src/script/squirrel.cpp:487–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487bool Squirrel::CreateClassInstance(const std::string &class_name, void *real_instance, HSQOBJECT *instance)
488{
489 ScriptAllocatorScope alloc_scope(this);
490 return Squirrel::CreateClassInstanceVM(this->vm, class_name, real_instance, instance, nullptr);
491}
492
493/* static */ SQUserPointer Squirrel::GetRealInstance(HSQUIRRELVM vm, int index, std::string_view tag)
494{

Callers 1

InitializeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected