mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 14:18:42 +01:00
Move meta and random to "aux" modules.
Wren now has three classes of modules: - The one magic "core" module that's built in and always needed. - Auxiliary libraries like "meta" and "random". These do not have any dependencies, so can be used even when you embed Wren inside an application. But they're also optional and can be disabled if you don't need them. - CLI modules. These ones need libuv and are tied to the CLI wrapper around the VM.
This commit is contained in:
@ -42,6 +42,8 @@ def main():
|
||||
wren_source_lines = f.readlines()
|
||||
|
||||
module = os.path.splitext(os.path.basename(args.input))[0]
|
||||
module = module.replace("wren_aux_", "")
|
||||
|
||||
c_source = wren_to_c_string(args.input, wren_source_lines, module)
|
||||
|
||||
with open(args.output, "w") as f:
|
||||
|
||||
Reference in New Issue
Block a user