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

Method InsertResult

src/script/squirrel.cpp:747–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747void Squirrel::InsertResult(bool result)
748{
749 ScriptAllocatorScope alloc_scope(this);
750
751 sq_pushbool(this->vm, result);
752 if (this->IsSuspended()) { // Called before resuming a suspended script?
753 vm->GetAt(vm->_stackbase + vm->_suspended_target) = vm->GetUp(-1);
754 vm->Pop();
755 }
756}
757
758void Squirrel::InsertResult(int result)
759{

Calls 4

IsSuspendedMethod · 0.95
sq_pushboolFunction · 0.85
sq_pushintegerFunction · 0.85
PopMethod · 0.45

Tested by

no test coverage detected