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

Method compare

Engine/source/console/stringStack.h:279–293  ·  view source on GitHub ↗

Compare 1st and 2nd items on stack, consuming them in the process, and returning true if they matched, false if they didn't.

Source from the content-addressed store, hash-verified

277 /// Compare 1st and 2nd items on stack, consuming them in the process,
278 /// and returning true if they matched, false if they didn't.
279 U32 compare()
280 {
281 // Figure out the 1st and 2nd item offsets.
282 U32 oldStart = mStart;
283 mStart = mStartOffsets[--mStartStackSize];
284
285 // Compare current and previous strings.
286 U32 ret = !dStricmp(mBuffer + mStart, mBuffer + oldStart);
287
288 // Put an empty string on the top of the stack.
289 mLen = 0;
290 mBuffer[mStart] = 0;
291
292 return ret;
293 }
294
295 void pushFrame()
296 {

Callers 4

execMethod · 0.45
consoleObject.cppFile · 0.45
isExportFilteredFunction · 0.45
buildFileListFunction · 0.45

Calls 1

dStricmpFunction · 0.85

Tested by

no test coverage detected