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

Method getFunctionArgs

Engine/source/console/codeBlock.cpp:691–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689//-------------------------------------------------------------------------
690
691String CodeBlock::getFunctionArgs( U32 ip )
692{
693 StringBuilder str;
694
695 U32 fnArgc = code[ ip + 5 ];
696 for( U32 i = 0; i < fnArgc; ++ i )
697 {
698 StringTableEntry var = CodeToSTE(code, ip + (i*2) + 6);
699
700 if( i != 0 )
701 str.append( ", " );
702
703 str.append( "string " );
704
705 // Try to capture junked parameters
706 if( var[ 0 ] )
707 str.append( var + 1 );
708 else
709 str.append( "JUNK" );
710 }
711
712 return str.end();
713}
714
715//-------------------------------------------------------------------------
716

Callers 2

printNamespaceEntriesMethod · 0.80
getArgumentsStringMethod · 0.80

Calls 3

CodeToSTEFunction · 0.85
appendMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected