MCPcopy Create free account
hub / github.com/ZDoom/Raze / GetConstantInt

Method GetConstantInt

source/common/scripting/backend/vmbuilder.cpp:212–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210//==========================================================================
211
212unsigned VMFunctionBuilder::GetConstantInt(int val)
213{
214 unsigned int *locp = IntConstantMap.CheckKey(val);
215 if (locp != NULL)
216 {
217 return *locp;
218 }
219 else
220 {
221 unsigned loc = IntConstantList.Push(val);
222 IntConstantMap.Insert(val, loc);
223 return loc;
224 }
225}
226
227//==========================================================================
228//

Callers 6

EmitMethod · 0.80
AddParameterIntConstMethod · 0.80
EmitCallMethod · 0.80
EmitCompareMethod · 0.80
EmitMethod · 0.80
ReleaseMethod · 0.80

Calls 3

CheckKeyMethod · 0.45
PushMethod · 0.45
InsertMethod · 0.45

Tested by

no test coverage detected