| 67 | } |
| 68 | |
| 69 | SQInteger ScriptPriorityQueue::Peek(HSQUIRRELVM vm) |
| 70 | { |
| 71 | if (this->IsEmpty()) { |
| 72 | ScriptObject::SetLastError(ScriptError::ERR_PRECONDITION_FAILED); |
| 73 | sq_pushnull(vm); |
| 74 | return 1; |
| 75 | } |
| 76 | |
| 77 | return SQConvert::Return<HSQOBJECT>::Set(vm, this->queue.front().second); |
| 78 | } |
| 79 | |
| 80 | SQInteger ScriptPriorityQueue::Exists(HSQUIRRELVM vm) |
| 81 | { |
nothing calls this directly
no test coverage detected