Update of /cvsroot/wxlua/wxLua/modules/wxbindstc/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26764/wxLua/modules/wxbindstc/src
Modified Files:
wxstc_builtin.cpp
Log Message:
make genwxbind.bat for wxstc
nicer fix for empty arrays, fixes previous fix to empty builtin function array compilation error
Index: wxstc_builtin.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/wxstc_builtin.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** wxstc_builtin.cpp 3 Feb 2006 15:18:05 -0000 1.2
--- wxstc_builtin.cpp 3 Feb 2006 15:59:27 -0000 1.3
***************
*** 29,34 ****
WXLUAMETHOD* wxLuaGetBuiltinList_wxstc(size_t &count)
{
! count = 0;
! return NULL;
}
--- 29,38 ----
WXLUAMETHOD* wxLuaGetBuiltinList_wxstc(size_t &count)
{
! static WXLUAMETHOD builtinList[] =
! {
! { LuaGlobal, 0, 0, 0, 0 },
! };
! count = (sizeof(builtinList)/sizeof(builtinList[0])) - 1;
! return builtinList;
}
|