From 416b22764e43644c19e63e694ec203a3a5c9ebca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sat, 26 Feb 2011 23:51:19 +0100 Subject: Some more cleanup. 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); } -- cgit v0.10.2-6-g49f6