Update of /cvsroot/wxlua/wxLua/apps/wxluacan/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3556/wxLua/apps/wxluacan/src
Modified Files:
cansim.cpp
Log Message:
* Changed wxLuaState_Type enum for wxLuaState(lua_State*, wxLuaState_Type)
Removed wxLUASTATE_USESTATE and you now | together wxLUASTATE_SETSTATE with
wxLUASTATE_OPENBINDINGS if you want the bindings opened.
Cleans up the creation of the wxLuaState so a precreated lua_State
should be able to be used easier.
- Remove poorly named wxLuaState::LuaError() and CheckRunError() and
replaced them with the C functions wxlua_errorinfo() and wxlua_LUA_ERR_msg()
respectively.
- Added wxlua_pushargs(wxChar**, int) for a standard way to push args
into Lua.
- Copy Lua's print() function to print_lua() instead of simply
overwriting it in case someone really wants to use it.
Index: cansim.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/apps/wxluacan/src/cansim.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** cansim.cpp 14 Aug 2007 13:42:13 -0000 1.15
--- cansim.cpp 15 Jan 2008 01:04:04 -0000 1.16
***************
*** 150,154 ****
m_menuObjects->Append( Object_AddRect, _T("Add rectangle") );
m_menuObjects->Append( Object_AddCircle, _T("Add circle") );
! m_menuObjects->Append( lua_script, _T("Run Script") );
m_menuObjects->AppendSeparator();
--- 150,154 ----
m_menuObjects->Append( Object_AddRect, _T("Add rectangle") );
m_menuObjects->Append( Object_AddCircle, _T("Add circle") );
! m_menuObjects->Append( lua_script, _T("Run Script...") );
m_menuObjects->AppendSeparator();
|