Get rid of source path in module.

It wasn't useful anyway since it always had the module name for all but
the main script.
This commit is contained in:
Bob Nystrom
2015-10-15 18:17:42 -07:00
parent d5b9f0096c
commit 3b09b35b59
10 changed files with 22 additions and 50 deletions
+1 -11
View File
@@ -181,17 +181,7 @@ void wrenFreeVM(WrenVM* vm);
void wrenCollectGarbage(WrenVM* vm);
// Runs [source], a string of Wren source code in a new fiber in [vm].
//
// [sourcePath] is a string describing where [source] was located, for use in
// debugging stack traces. It must not be `null`.
//
// If it's an empty string, then [source] is considered part of the "core"
// module. Any module-level names defined in it will be implicitly imported by
// another other modules. This also means runtime errors in its code will be
// omitted from stack traces (to avoid confusing users with core library
// implementation details).
WrenInterpretResult wrenInterpret(WrenVM* vm, const char* sourcePath,
const char* source);
WrenInterpretResult wrenInterpret(WrenVM* vm, const char* source);
// Creates a handle that can be used to invoke a method with [signature] on the
// object in [module] currently stored in top-level [variable].