mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-12 06:42:18 +00:00
previous behavior when parsing a statement where a block is typically expected would fail to associate the statement with the parent block it's in, resulting in variable declarations ending up in global scope. this fixes #197
16 lines
No EOL
173 B
C++
16 lines
No EOL
173 B
C++
void a() {
|
|
if (1)
|
|
for (float i = 0; i < 3; ++i)
|
|
print(ftos(i));
|
|
}
|
|
|
|
void b() {
|
|
if (1)
|
|
for (float i = 0; i < 3; ++i)
|
|
print(ftos(i));
|
|
}
|
|
|
|
void main() {
|
|
a();
|
|
b();
|
|
} |