MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / Sc_ScanIdent

Function Sc_ScanIdent

Engine/source/console/CMDscan.cpp:2355–2371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2353}
2354
2355static int Sc_ScanIdent()
2356{
2357 ConsoleBaseType *type;
2358
2359 CMDtext[CMDleng] = 0;
2360
2361 if((type = ConsoleBaseType::getTypeByName(CMDtext)) != NULL)
2362 {
2363 /* It's a type */
2364 CMDlval.i = MakeToken< int >( type->getTypeID(), lineIndex );
2365 return TYPEIDENT;
2366 }
2367
2368 /* It's an identifier */
2369 CMDlval.s = MakeToken< StringTableEntry >( StringTable->insert(CMDtext), lineIndex );
2370 return IDENT;
2371}
2372
2373void expandEscape(char *dest, const char *src)
2374{

Callers 1

CMDscan.cppFile · 0.85

Calls 2

getTypeIDMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected