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

Function Sc_ScanIdent

Engine/source/console/CMDscan.cpp:2351–2367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

CMDscan.cppFile · 0.85

Calls 2

getTypeIDMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected