diff options
author | Cameron Hall <camthesaxman@users.noreply.github.com> | 2016-10-22 02:05:59 -0500 |
---|---|---|
committer | YamaArashi <YamaArashi@users.noreply.github.com> | 2016-10-22 00:05:59 -0700 |
commit | e348acba2ee172c106c9bc6f553fe7fc959d9390 (patch) | |
tree | eb3f6cfcf6b2a7f421a38e1cc84423ef3b567579 /include | |
parent | 5bae8dc95fc5557e6eea62dd23c26d4d566f0248 (diff) |
clean up scrcmd.c (#67)
* fix some awkward code
* add ScriptReadByte macro
* add missing headers
* don't use & to access multidimensional array rows
Diffstat (limited to 'include')
-rw-r--r-- | include/script.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/script.h b/include/script.h index 7a7b2de72..9b165bed2 100644 --- a/include/script.h +++ b/include/script.h @@ -18,6 +18,8 @@ struct ScriptContext u32 data[4]; }; +#define ScriptReadByte(ctx) (*(ctx->scriptPtr++)) + void InitScriptContext(struct ScriptContext *ctx, void *cmdTable, void *cmdTableEnd); u8 SetupBytecodeScript(struct ScriptContext *ctx, void *ptr); void SetupNativeScript(struct ScriptContext *ctx, void *ptr); |