refactor: extract IO class into separate module with wrenLoadIOLibrary and wren_io.c
Replace monolithic corelib.wren with per-class builtin/*.wren files and generate_builtins.py script. Move IO class definition and its native writeString_ method from wren_core.c to new wren_io.c, adding wrenGetArgumentString and wrenDefineStaticMethod to the public API. Update Makefile target from corelib to builtin and remove generate_corelib.py.
This commit is contained in:
@@ -52,6 +52,8 @@ docs:
|
||||
watchdocs:
|
||||
@./script/generate_docs.py --watch
|
||||
|
||||
# Take the contents of corelib.wren and copy them into src/wren_core.c.
|
||||
corelib:
|
||||
@./script/generate_corelib.py
|
||||
# Take the contents of the scripts under builtin/ and copy them into their
|
||||
# respective wren_<name>.c source files.
|
||||
# TODO: Needs dependencies so it knows when to run.
|
||||
builtin:
|
||||
@./script/generate_builtins.py
|
||||
|
||||
Reference in New Issue
Block a user