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

Function Parentheses

src/conddebug.cpp:188–210  ·  view source on GitHub ↗

Handles the following part of the grammar: '(' E ')'

Source from the content-addressed store, hash-verified

186
187// Handles the following part of the grammar: '(' E ')'
188static Condition* Parentheses(const char** str, Condition* c, char openPar, char closePar)
189{
190 if (next == openPar)
191 {
192 scan(str);
193
194 if (!c) return 0;
195
196 c->lhs = Connect(str);
197
198 if (next == closePar)
199 {
200 scan(str);
201 return c;
202 }
203 else
204 {
205 return 0;
206 }
207 }
208
209 return 0;
210}
211
212/*
213* Check for primitives

Callers 1

PrimitiveFunction · 0.85

Calls 2

scanFunction · 0.85
ConnectFunction · 0.85

Tested by

no test coverage detected