Merge branch 'lua-scripting' (early part) into screen-scripting-soc
authorRui Guo <firemeteor.guo@gmail.com>
Wed, 10 Jun 2009 06:47:24 +0000 (10 14:47 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Wed, 10 Jun 2009 06:47:24 +0000 (10 14:47 +0800)
Add stackdump debug information.

1  2 
src/lua.c

diff --cc src/lua.c
+++ b/src/lua.c
@@@ -940,10 -890,10 +982,12 @@@ LuaRegEvent(lua_State *L
  
    event = luaL_checkstring(L, idx++);
    snprintf(evbuf, SEVNAME_MAX, "%s_%s", objname, event);
 -  handler = luaL_checkstring(L, idx++);
 +
 +  /* Check and get the handler */
 +  handler = LuaCheckHandler(L, idx++, 1);
  
+   StackDump(L, "In RegEvent\n");
    if (idx <= argc)
      priv = luaL_checkinteger(L, idx);