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

Function TwoCharOperator

src/conddebug.cpp:117–128  ·  view source on GitHub ↗

Generic handler for two-character operators

Source from the content-addressed store, hash-verified

115
116// Generic handler for two-character operators
117static int TwoCharOperator(const char** str, char c1, char c2, int op)
118{
119 if (next == c1 && **str == c2)
120 {
121 scan(str);
122 return op;
123 }
124 else
125 {
126 return 0;
127 }
128}
129
130// Determines if a character is a flag
131static int isFlag(char c)

Callers 2

CompareOperatorsFunction · 0.85
ConnectOperatorsFunction · 0.85

Calls 1

scanFunction · 0.85

Tested by

no test coverage detected