MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / EndContext

Method EndContext

engine/Evaluator/express.cpp:3055–3065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3053}
3054
3055void GameState::EndContext() const
3056{
3057 if (_actContext <= 0)
3058 {
3059 Poseidon::Foundation::ErrorMessage("GameState context stack underflow");
3060 return;
3061 }
3062 _contextStack[_actContext].Free();
3063 _actContext--;
3064 _e = _contextStack[_actContext];
3065}
3066
3067bool GameState::CheckEvaluate(const char* expression) const
3068{

Callers 15

LLVMFuzzerTestOneInputFunction · 0.80
StringCallFunction · 0.80
StringCallNoArgFunction · 0.80
StringRepeatFunction · 0.80
StringThenFunction · 0.80
StringExitWithFunction · 0.80
ForDoOpFunction · 0.80
ArrayThenFunction · 0.80
StringEvalFunction · 0.80
ListCountCondFunction · 0.80
ListForEachFunction · 0.80
runMethod · 0.80

Calls 2

ErrorMessageFunction · 0.85
FreeMethod · 0.45

Tested by

no test coverage detected