MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / getArgcArgv

Method getArgcArgv

Engine/source/console/stringStack.cpp:28–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28void ConsoleValueStack::getArgcArgv(StringTableEntry name, U32 *argc, ConsoleValueRef **in_argv, bool popStackFrame /* = false */)
29{
30 U32 startStack = mStackFrames[mFrame-1];
31 U32 argCount = getMin(mStackPos - startStack, (U32)MaxArgs - 1);
32
33 *in_argv = mArgv;
34 mArgv[0].value = CSTK.pushStackString(name);
35
36 for(U32 i = 0; i < argCount; i++) {
37 ConsoleValueRef *ref = &mArgv[i+1];
38 ref->value = &mStack[startStack + i];
39 }
40 argCount++;
41
42 *argc = argCount;
43
44 if(popStackFrame)
45 popFrame();
46}
47
48ConsoleValueStack::ConsoleValueStack() :
49mFrame(0),

Callers 1

execMethod · 0.80

Calls 1

pushStackStringMethod · 0.80

Tested by

no test coverage detected