diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-26 22:51:19 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-26 22:51:19 (GMT) |
commit | 416b22764e43644c19e63e694ec203a3a5c9ebca (patch) | |
tree | f72e7a3cd5b3042a626e9a3c369cbefa55e5bb92 /Sluift | |
parent | 29d5ae626df9fa0946952a78e9f1e8869ef66ae6 (diff) | |
download | swift-416b22764e43644c19e63e694ec203a3a5c9ebca.zip swift-416b22764e43644c19e63e694ec203a3a5c9ebca.tar.bz2 |
Some more cleanup.
Diffstat (limited to 'Sluift')
-rw-r--r-- | Sluift/linit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Sluift/linit.c b/Sluift/linit.c index 14299b3..bb5d985 100644 --- a/Sluift/linit.c +++ b/Sluift/linit.c @@ -53,8 +53,7 @@ LUALIB_API void luaL_openlibs (lua_State *L) { lua_pushstring(L, lib->name); lua_call(L, 1, 0); } - int result = luaL_loadstring(L, tprint) || lua_pcall(L, 0, 0, 0); - if (result != 0) { + if (luaL_dostring(L, tprint) != 0) { fprintf(stderr, "%s\n", lua_tostring(L, -1)); lua_pop(L, 1); } |