More work on moving engine into dlmalloc heap
This commit is contained in:
@@ -314,7 +314,7 @@ LuaDefine(tangible_nopredict, "",
|
||||
LuaDefine(pprint, "obj1,obj2,...",
|
||||
"|Pretty-print object or objects.") {
|
||||
World *w = World::fetch_global_pointer(L);
|
||||
eng::ostream *ostream = w->lthread_print_stream();
|
||||
std::ostream *ostream = w->lthread_print_stream();
|
||||
LuaStack LS(L);
|
||||
for (int i = 1; i <= lua_gettop(L); i++) {
|
||||
LuaSpecial root(i);
|
||||
@@ -327,7 +327,7 @@ LuaDefine(pprint, "obj1,obj2,...",
|
||||
LuaDefine(print, "obj1,obj2,...",
|
||||
"|Print object or objects.") {
|
||||
World *w = World::fetch_global_pointer(L);
|
||||
eng::ostream *ostream = w->lthread_print_stream();
|
||||
std::ostream *ostream = w->lthread_print_stream();
|
||||
LuaStack LS(L);
|
||||
int n = lua_gettop(L);
|
||||
for (int i = 1; i <= n; i++) {
|
||||
@@ -342,7 +342,7 @@ LuaDefine(print, "obj1,obj2,...",
|
||||
LuaDefine(doc, "function",
|
||||
"|Print documentation for specified function.") {
|
||||
World *w = World::fetch_global_pointer(L);
|
||||
eng::ostream *ostream = w->lthread_print_stream();
|
||||
std::ostream *ostream = w->lthread_print_stream();
|
||||
LuaArg func;
|
||||
LuaStack LS(L, func);
|
||||
eng::string doc = SourceDB::function_docs(LS, func);
|
||||
|
||||
Reference in New Issue
Block a user