mirror of
https://github.com/arabine/open-story-teller.git
synced 2025-12-06 17:09:06 +01:00
Add static before inline
This commit is contained in:
parent
f84d8dec7b
commit
8dbf0a2091
1 changed files with 2 additions and 2 deletions
|
|
@ -35,13 +35,13 @@ THE SOFTWARE.
|
|||
|
||||
#define _NEXT_BYTE ctx->rom.mem[++ctx->registers[PC]]
|
||||
|
||||
inline uint16_t _NEXT_SHORT (chip32_ctx_t *ctx)
|
||||
static inline uint16_t _NEXT_SHORT (chip32_ctx_t *ctx)
|
||||
{
|
||||
ctx->registers[PC] += 2;
|
||||
return ctx->rom.mem[ctx->registers[PC]-1] | ctx->rom.mem[ctx->registers[PC]] << 8;
|
||||
}
|
||||
|
||||
inline uint32_t _NEXT_INT (chip32_ctx_t *ctx)
|
||||
static inline uint32_t _NEXT_INT (chip32_ctx_t *ctx)
|
||||
{
|
||||
ctx->registers[PC] += 4;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue