port/mars-tycoon
Last change
on this file since 25c4774 was 80a6a52, checked in by Jonathan Neufeld <support@…>, 3 years ago |
Get to a compile state for terrain procedural generation
|
-
Property mode
set to
100755
|
File size:
375 bytes
|
Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | #define CR_CONTEXT int __s;
|
---|
4 | #define CR_COPY(from) __s(from.__s)
|
---|
5 | #define CR_INIT() __s = 0;
|
---|
6 | #define CR_START() switch (__s) { case 0:
|
---|
7 | #define CR_RETURN(x) { __s = __LINE__; return x; case __LINE__: ; }
|
---|
8 | #define CR_RETURN_VOID { __s = __LINE__; return; case __LINE__: ; }
|
---|
9 | #define CR_END() { break; default: for (;;) ; } } __s = 0;
|
---|
10 | #define CR_TERM (__s == 0)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.