diff options
Diffstat (limited to 'cd-tool.cpp')
-rw-r--r-- | cd-tool.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cd-tool.cpp b/cd-tool.cpp index 5080169..ad283a4 100644 --- a/cd-tool.cpp +++ b/cd-tool.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cd-tool.cpp,v 1.19 2003-12-10 02:59:30 pixel Exp $ */ +/* $Id: cd-tool.cpp,v 1.20 2003-12-11 16:53:42 pixel Exp $ */ #include <getopt.h> #include <stdio.h> @@ -38,10 +38,11 @@ #include "isobuilder.h" #include "luacd.h" -static int myprint(lua_State * L) { - const char * t = lua_tostring(L, -1); +static int myprint(lua_State * _L) { + Lua * L = Lua::find(_L); + String t = L->tostring(); - Base::printm(M_INFO, "From LUA: %s\n", t); + Base::printm(M_INFO, "From LUA: " + t + "\n"); return 0; } |