/[enigma]/enigma/src/enigma-lua.cc
ViewVC logotype

Diff of /enigma/src/enigma-lua.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by reallysoft, Tue May 27 11:08:09 2003 UTC revision 1.13 by reallysoft, Sun Jun 1 18:48:18 2003 UTC
# Line 1  Line 1 
1  /*  /*
2  ** Lua binding: enigma  ** Lua binding: enigma
3  ** Generated automatically by tolua 4.0a on Tue May 27 00:38:40 2003.  ** Generated automatically by tolua 4.0a on Sun Jun  1 02:22:03 2003.
4  */  */
5    
6  #include "tolua.h"  #include "tolua.h"
# Line 991  static int toluaI_enigma_options_LevelSt Line 991  static int toluaI_enigma_options_LevelSt
991   !tolua_istype(tolua_S,2,LUA_TNUMBER,1) ||   !tolua_istype(tolua_S,2,LUA_TNUMBER,1) ||
992   !tolua_istype(tolua_S,3,LUA_TNUMBER,1) ||   !tolua_istype(tolua_S,3,LUA_TNUMBER,1) ||
993   !tolua_istype(tolua_S,4,LUA_TNUMBER,1) ||   !tolua_istype(tolua_S,4,LUA_TNUMBER,1) ||
994   !tolua_isnoobj(tolua_S,5)   !tolua_istype(tolua_S,5,LUA_TNUMBER,1) ||
995     !tolua_isnoobj(tolua_S,6)
996   )   )
997   goto tolua_lerror;   goto tolua_lerror;
998   else   else
# Line 999  static int toluaI_enigma_options_LevelSt Line 1000  static int toluaI_enigma_options_LevelSt
1000    int easy = ((int)  tolua_getnumber(tolua_S,2,-1));    int easy = ((int)  tolua_getnumber(tolua_S,2,-1));
1001    int hard = ((int)  tolua_getnumber(tolua_S,3,-1));    int hard = ((int)  tolua_getnumber(tolua_S,3,-1));
1002    int fin = ((int)  tolua_getnumber(tolua_S,4,0));    int fin = ((int)  tolua_getnumber(tolua_S,4,0));
1003      unsigned long solv = ((unsigned long)  tolua_getnumber(tolua_S,5,0));
1004   {   {
1005    LevelStatus* toluaI_ret = (LevelStatus*)  new LevelStatus(easy,hard,fin);    LevelStatus* toluaI_ret = (LevelStatus*)  new LevelStatus(easy,hard,fin,solv);
1006   tolua_pushusertype(tolua_S,(void*)toluaI_ret,tolua_tag(tolua_S,"LevelStatus"));   tolua_pushusertype(tolua_S,(void*)toluaI_ret,tolua_tag(tolua_S,"LevelStatus"));
1007   }   }
1008   }   }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26