Update of /cvsroot/wxlua/wxLua/modules/wxbind/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv30668/wxLua/modules/wxbind/src
Modified Files:
image.cpp
Log Message:
Move all lua includes to wxldefs.h
Fix node != NULL warning
Make wxImageHistogram::iterator::SetFirst error out since you cannot set first value of a wxHashMap
Fix unicode error in wxlbind.cpp
Index: image.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/image.cpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** image.cpp 8 Jun 2007 01:36:27 -0000 1.40
--- image.cpp 8 Jun 2007 03:40:51 -0000 1.41
***************
*** 2288,2292 ****
static int LUACALL wxLua_wxImageHistogramEntry_GetIndex(lua_State *L);
static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogramEntry_GetIndex[1] = {{ wxLua_wxImageHistogramEntry_GetIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxImageHistogramEntry_GetIndex }};
! // %rename Index %member unsigned long index // GetIndex() and SetIndex(idx)
static int LUACALL wxLua_wxImageHistogramEntry_GetIndex(lua_State *L)
{
--- 2288,2292 ----
static int LUACALL wxLua_wxImageHistogramEntry_GetIndex(lua_State *L);
static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogramEntry_GetIndex[1] = {{ wxLua_wxImageHistogramEntry_GetIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxImageHistogramEntry_GetIndex }};
! // %rename Index %member unsigned long index // GetIndex() only, SetIndex(idx) is not allowed
static int LUACALL wxLua_wxImageHistogramEntry_GetIndex(lua_State *L)
{
***************
*** 2318,2322 ****
static int LUACALL wxLua_wxImageHistogramEntry_SetIndex(lua_State *L);
static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogramEntry_SetIndex[1] = {{ wxLua_wxImageHistogramEntry_SetIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxImageHistogramEntry_SetIndex }};
! // %rename Index %member unsigned long index // GetIndex() and SetIndex(idx)
static int LUACALL wxLua_wxImageHistogramEntry_SetIndex(lua_State *L)
{
--- 2318,2322 ----
static int LUACALL wxLua_wxImageHistogramEntry_SetIndex(lua_State *L);
static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogramEntry_SetIndex[1] = {{ wxLua_wxImageHistogramEntry_SetIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxImageHistogramEntry_SetIndex }};
! // %rename Index %member unsigned long index // GetIndex() only, SetIndex(idx) is not allowed
static int LUACALL wxLua_wxImageHistogramEntry_SetIndex(lua_State *L)
{
***************
*** 2435,2438 ****
--- 2435,2441 ----
static int LUACALL wxLua_wxImageHistogram_iterator_Set_first(lua_State *L)
{
+ wxlua_terror(L, "You cannot set the first element of a wxHashTable, do not use wxImageHistogram::iterator::SetFirst().");
+ return 0;
+ /*
wxLuaState wxlState(L);
// get the number value
***************
*** 2443,2446 ****
--- 2446,2450 ----
// return the number of parameters
return 0;
+ */
}
|