diff options
author | camthesaxman <cameronghall@cox.net> | 2017-09-09 18:17:09 -0500 |
---|---|---|
committer | camthesaxman <cameronghall@cox.net> | 2017-09-09 18:17:09 -0500 |
commit | 95f856c39e81e2b723065e757b4dcf577441c558 (patch) | |
tree | 8719c33bfeac0e6b26e5b88788da6f3b30ae7e38 /include/script.h | |
parent | aa659fe8dd0abae6632cb4940d7e56684b84d8be (diff) |
more script_menu refactoring
Diffstat (limited to 'include/script.h')
-rw-r--r-- | include/script.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/script.h b/include/script.h index 2a738698c..74f22584e 100644 --- a/include/script.h +++ b/include/script.h @@ -3,6 +3,7 @@ struct ScriptContext; +typedef bool8 (*NativeScriptFunc)(void); typedef bool8 (*ScrCmdFunc)(struct ScriptContext *); typedef u8 Script[]; @@ -11,7 +12,7 @@ struct ScriptContext u8 stackDepth; u8 mode; u8 comparisonResult; - u8 (*nativePtr)(void); + NativeScriptFunc nativePtr; const u8 *scriptPtr; const u8 *stack[20]; ScrCmdFunc *cmdTable; @@ -23,7 +24,7 @@ struct ScriptContext void InitScriptContext(struct ScriptContext *ctx, void *cmdTable, void *cmdTableEnd); u8 SetupBytecodeScript(struct ScriptContext *ctx, const u8 *ptr); -void SetupNativeScript(struct ScriptContext *ctx, void *ptr); +void SetupNativeScript(struct ScriptContext *ctx, NativeScriptFunc ptr); void StopScript(struct ScriptContext *ctx); u8 RunScriptCommand(struct ScriptContext *ctx); u8 ScriptPush(struct ScriptContext *ctx, const u8 *ptr); |