summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-06-19 11:30:06 +0800
committerOpportunityLiu <[email protected]>2019-06-19 11:30:06 +0800
commitd5ad005f6c8a79af48f4c73f0ec87775ab746d0d (patch)
treeeefdd667a032d9732481b61cff3b4d860853ca8f /core/src
parent5c06711d12932c02ab7b64a25135902fabf00675 (diff)
improve dump
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/sandbox/interactive.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/xmake/sandbox/interactive.c b/core/src/xmake/sandbox/interactive.c
index 64c67af94..941e38c31 100644
--- a/core/src/xmake/sandbox/interactive.c
+++ b/core/src/xmake/sandbox/interactive.c
@@ -329,15 +329,15 @@ tb_int_t xm_sandbox_interactive(lua_State* lua)
// get results count
tb_int_t count = lua_gettop(lua) - top;
- /* print errors
+ /* dump results
*
* stack: arg1(sandbox_scope) [results] -> ...
- * after: arg1(sandbox_scope) print [results] -> ...
+ * after: arg1(sandbox_scope) interactive_dump [results] -> ...
*/
- lua_getfield(lua, 1, "print"); // load print() from sandbox_scope
+ lua_getfield(lua, 1, "interactive_dump"); // load interactive_dump() from sandbox_scope
lua_insert(lua, -(count + 1));
if (lua_pcall(lua, count, 0, 0) != 0)
- tb_printl(lua_pushfstring(lua, "error calling " LUA_QL("print") " (%s)", lua_tostring(lua, -1)));
+ tb_printl(lua_pushfstring(lua, "error calling " LUA_QL("interactive_dump") " (%s)", lua_tostring(lua, -1)));
}
}