Mercurial > repos > blastem
diff debug.h @ 2365:8c060849a503
Basic function call support in debug language
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 08 Nov 2023 23:47:26 -0800 |
parents | c822bb628fc3 |
children | 1fe5afe263f3 |
line wrap: on
line diff
--- a/debug.h Wed Nov 08 00:09:33 2023 -0800 +++ b/debug.h Wed Nov 08 23:47:26 2023 -0800 @@ -151,6 +151,18 @@ uint32_t storage; }; +typedef debug_val (*debug_native_func)(debug_val *args, int num_args); +typedef struct { + union { + debug_native_func native; + parsed_command *commands; + } impl; + uint32_t num_commands; + int max_args; + int min_args; + uint8_t is_native; +} debug_func; + typedef struct debug_var debug_var; typedef debug_val (*debug_var_get)(debug_var *var); typedef void (*debug_var_set)(debug_var *var, debug_val val);