MCPcopy Create free account
hub / github.com/TASEmulators/fceux / CompareOperators

Function CompareOperators

src/conddebug.cpp:467–488  ·  view source on GitHub ↗

Check for <=, =>, ==, !=, > and < operators */

Source from the content-addressed store, hash-verified

465
466/* Check for <=, =>, ==, !=, > and < operators */
467static int CompareOperators(const char** str)
468{
469 int val = TwoCharOperator(str, '=', '=', OP_EQ);
470 if (val) return val;
471
472 val = TwoCharOperator(str, '!', '=', OP_NE);
473 if (val) return val;
474
475 val = TwoCharOperator(str, '>', '=', OP_GE);
476 if (val) return val;
477
478 val = TwoCharOperator(str, '<', '=', OP_LE);
479 if (val) return val;
480
481 val = next == '>' ? OP_G : 0;
482 if (val) return val;
483
484 val = next == '<' ? OP_L : 0;
485 if (val) return val;
486
487 return OP_NO;
488}
489
490/* Handle <=, =>, ==, !=, > and < operators */
491static Condition* Compare(const char** str)

Callers

nothing calls this directly

Calls 1

TwoCharOperatorFunction · 0.85

Tested by

no test coverage detected