Make builtin statics unambigous

This commit is contained in:
Luchs
2015-04-16 14:45:22 +02:00
parent 8d90333ebc
commit 4dad9cd688
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -11,7 +11,7 @@
#include "wren_value.h"
// This string literal is generated automatically from core. Do not edit.
static const char* libSource =
static const char* coreLibSource =
"class Bool {}\n"
"class Fiber {}\n"
"class Fn {}\n"
@@ -1331,7 +1331,7 @@ void wrenInitializeCore(WrenVM* vm)
// '---------' '--------------' -'
// The rest of the classes can now be defined normally.
wrenInterpret(vm, "", libSource);
wrenInterpret(vm, "", coreLibSource);
vm->boolClass = AS_CLASS(wrenFindVariable(vm, "Bool"));
PRIMITIVE(vm->boolClass, "toString", bool_toString);
+2 -2
View File
@@ -10,7 +10,7 @@
#define MAX_READ_LEN 1024
// This string literal is generated automatically from io.wren. Do not edit.
static const char* libSource =
static const char* ioLibSource =
"class IO {\n"
" static print {\n"
" IO.writeString_(\"\n\")\n"
@@ -142,7 +142,7 @@ static void ioTime(WrenVM* vm)
void wrenLoadIOLibrary(WrenVM* vm)
{
wrenInterpret(vm, "", libSource);
wrenInterpret(vm, "", ioLibSource);
}
WrenForeignMethodFn wrenBindIOForeignMethod(WrenVM* vm, const char* className,
+2 -2
View File
@@ -7,7 +7,7 @@
#include "wren_primitive.h"
// This string literal is generated automatically from meta.wren. Do not edit.
static const char* libSource =
static const char* metaLibSource =
"class Meta {}\n";
DEF_PRIMITIVE(meta_eval)
@@ -43,7 +43,7 @@ DEF_PRIMITIVE(meta_eval)
void wrenLoadMetaLibrary(WrenVM* vm)
{
wrenInterpret(vm, "", libSource);
wrenInterpret(vm, "", metaLibSource);
// The methods on "Meta" are static, so get the metaclass for the Meta class.
ObjClass* meta = AS_CLASS(wrenFindVariable(vm, "Meta"))->obj.classObj;