diff options
| author | iamcheeseman <[email protected]> | 2026-04-14 12:44:25 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-04-14 12:44:25 -0400 |
| commit | ca004156cbb1c525900f444994112fc17b71d63d (patch) | |
| tree | 8d19ad7199044e4b11fde6725eb758917f317b4e /uscript/uscript.c | |
| parent | 752d7967f3cccb4f43e1df7fd99d4944884fc977 (diff) | |
microscript: add globals
Diffstat (limited to 'uscript/uscript.c')
| -rw-r--r-- | uscript/uscript.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/uscript/uscript.c b/uscript/uscript.c index 5ec43a1..2b32110 100644 --- a/uscript/uscript.c +++ b/uscript/uscript.c @@ -32,3 +32,8 @@ void us_load_src(const char *src) return; us_exec(create_func(proto)); } + +int us_declare_global(const char *name) +{ + return declare_global(copy_str(name, -1)); +} |
