(cheevos) Get rid of a lot of macros - make it more understandable

This commit is contained in:
twinaphex 2018-01-19 18:25:54 +01:00
parent 4f16ff8c2e
commit 92a18e411c
2 changed files with 686 additions and 563 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,11 +37,6 @@ Released under the CC0: https://creativecommons.org/publicdomain/zero/1.0/
case __LINE__: ; \
} while ( 0 )
#define CORO_STOP() \
do { \
return 0; \
} while ( 0 )
/* The coroutine entry point, never use 0 as a label */
#define CORO_BEGIN 0
@ -49,7 +44,7 @@ Released under the CC0: https://creativecommons.org/publicdomain/zero/1.0/
#define CORO_SETUP( x ) \
do { \
( x )->step = CORO_BEGIN; \
( x )->sp = 0; \
( x )->sp = 0; \
} while ( 0 )
/* A coroutine */
@ -66,8 +61,6 @@ typedef struct
unsigned i;
unsigned j;
unsigned k;
int mapper;
size_t romsize;
size_t bytes;
size_t count;
size_t offset;