Commit Graph

5 Commits

Author SHA1 Message Date
Luchs
1cd91a52b4 fix: rename builtin static variables to avoid linker ambiguity across modules 2015-04-16 11:07:14 +00:00
Bob Nystrom
d92a8f1c93 fix: replace foreign Meta.eval with primitive and suppress compile errors in wrenCompile 2015-04-04 04:22:58 +00:00
Bob Nystrom
83e062cc71 feat: add foreign method binding for Meta class and restrict foreign lookup to core module
Add foreign static eval(source) method to Meta class in meta.wren and implement wrenBindMetaForeignMethod in wren_meta.c to handle its binding. Change the implicit module name from "main" to "core" in wren_vm.c and restrict foreign method lookup to only the "core" module, enabling Meta foreign methods to be resolved alongside IO methods. Relax the IO foreign method binder to return NULL instead of asserting for non-IO classes, allowing fallback to other library binders.
2015-03-26 03:20:26 +00:00
Bob Nystrom
c52fc1844f feat: add wren_meta source and header files to Xcode project build
Add wren_meta.c and wren_meta.h file references to the Xcode project.pbxproj, including the wren_meta.c source in the PBXBuildFile section and both files in the PBXFileReference section. Also reformat indentation in metaEval function body and add a TODO comment for argument type checking.
2015-03-26 02:25:18 +00:00
Gavin Schulz
c8fa7e619f feat: add Meta library with eval function for inline code interpretation 2015-03-22 21:16:53 +00:00