Retoor software development Projects Research SearchXNG
Register Sign In

19 lines
426 B
C
Raw Normal View History

feat: add Meta library with eval function for inline code interpretation
2015-03-22 22:16:53 +01:00
#ifndef wren_meta_h
#define wren_meta_h
#include "wren.h"
#include "wren_common.h"
// This module defines the Meta class and its associated methods.
#if WREN_USE_LIB_META
void wrenLoadMetaLibrary(WrenVM* vm);
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 04:20:26 +01:00
WrenForeignMethodFn wrenBindMetaForeignMethod(WrenVM* vm,
const char* className,
const char* signature);
feat: add Meta library with eval function for inline code interpretation
2015-03-22 22:16:53 +01:00
#endif
#endif
Reference in New Issue Copy Permalink
0cdbe8bc5a
wren/src/vm/wren_meta.h
Response time: 1066ms
Mail Licenses API