Update of /cvsroot/wxlua/wxLua/bindings/wxluasocket
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv12326/wxluasocket
Added Files:
override.hpp
Log Message:
add override file for wxluasocket binding
--- NEW FILE: override.hpp ---
%override wxLua_wxLuaDebugServerCompile_constructor
// %constructor wxLuaDebugServerCompile(const wxString &buffer, const wxString &fileName)
static int LUACALL wxLua_wxLuaDebugServerCompile_constructor(lua_State *L)
{
wxLuaState wxlState(L);
// const wxString &fileName
wxString fileName = lua2wx(wxlState.GetStringType(2));
// const wxString &buffer
wxString buffer = lua2wx(wxlState.GetStringType(1));
// compile the file
bool fResult = wxLuaDebugServer::Compile(buffer, fileName);
// push result
lua_pushboolean(L, fResult);
// return the number of parameters
return 1;
}
%end
|