From 181bc7603049cbdf10c915dcaea1d59d9d5e5e7d Mon Sep 17 00:00:00 2001 From: Mauro Iazzi Date: Tue, 29 Sep 2009 13:42:29 +0200 Subject: [PATCH] remove QDebug from lqt_common.cpp --- common/lqt_common.cpp | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/common/lqt_common.cpp b/common/lqt_common.cpp index 7a7ea20..acd7cb5 100644 --- a/common/lqt_common.cpp +++ b/common/lqt_common.cpp @@ -26,10 +26,9 @@ #include "lqt_common.hpp" #include +#include #include -#include - static void lqtL_getenumtable (lua_State *L) { lua_getfield(L, LUA_REGISTRYINDEX, LQT_ENUMS); if (lua_isnil(L, -1)) { @@ -373,11 +372,11 @@ bool lqtL_missarg (lua_State *L, int index, int n) { } static void CS(lua_State *L) { - qDebug() << "++++++++++"; - for (int i=1;i<=lua_gettop(L);i++) { - qDebug() << luaL_typename(L, i) << lua_touserdata(L, i); - } - qDebug() << "----------"; + std::cerr << "++++++++++" << std::endl; + for (int i=1;i<=lua_gettop(L);i++) { + std::cerr << luaL_typename(L, i) << " " << lua_touserdata(L, i) << std::endl; + } + std::cerr << "----------" << std::endl; } static void lqtL_ensurepointer (lua_State *L, const void *p) { // (+1) @@ -453,15 +452,15 @@ void lqtL_copyudata (lua_State *L, const void *p, const char *name) { lua_pushstring(L, "new"); lua_rawget(L, -2); if (lua_isnil(L, -1)) { - qDebug() << "cannot copy" << name; - lua_pop(L, 2); - lua_pushnil(L); + std::cerr << "cannot copy " << name << std::endl; + lua_pop(L, 2); + lua_pushnil(L); } else { lua_remove(L, -2); lqtL_pushudata(L, p, name); if (lua_pcall(L, 1, 1, 0)) { - qDebug() << "error copying" << name; - lua_pop(L, 1); + std::cerr << "error copying " << name << std::endl; + lua_pop(L, 1); lua_pushnil(L); } // Enable autodeletion for copied stuff -- 2.11.4.GIT