diff options
| author | iamcheeseman <[email protected]> | 2026-04-14 12:47:56 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-04-14 12:47:56 -0400 |
| commit | 968a7292f0b88f9485f4511e48acbee36cf71036 (patch) | |
| tree | 1b0f5c68774c81a939b8c408c33517f53aae5518 /uscript/uscript.h | |
| parent | ca004156cbb1c525900f444994112fc17b71d63d (diff) | |
microscript: add c functions
Diffstat (limited to 'uscript/uscript.h')
| -rw-r--r-- | uscript/uscript.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/uscript/uscript.h b/uscript/uscript.h index 74958e5..a7efced 100644 --- a/uscript/uscript.h +++ b/uscript/uscript.h @@ -3,6 +3,8 @@ struct us_func; +typedef void (*us_cfunc_sig)(int argc); + void us_init(void); void us_deinit(void); @@ -11,4 +13,6 @@ void us_load_src(const char *src); void us_exec(struct us_func *func); +void us_set_cfunc(const char *c_name, us_cfunc_sig c, int argc); + #endif // __USCRIPT_LANG_H__ |
