Hi John,

%operator a2dCanvasObjectListIter& operator--(int)

If you change it to generate this, down here, it will work:

  *returns = ((*self).operator++(arg1));

Found in your interesting link 
http://www.acm.org/crossroads/xrds2-1/ovp.html
       
static wxLuaArgType 
s_wxluatypeArray_wxLua_a2dCanvasObjectListIter_op_inc1[] = { 
&wxluatype_a2dCanvasObjectListIter, &wxluatype_TNUMBER, NULL };
static int LUACALL wxLua_a2dCanvasObjectListIter_op_inc1(lua_State *L);
// static wxLuaBindCFunc 
s_wxluafunc_wxLua_a2dCanvasObjectListIter_op_inc1[1] = {{ 
wxLua_a2dCanvasObjectListIter_op_inc1, WXLUAMETHOD_METHOD, 2, 2, 
s_wxluatypeArray_wxLua_a2dCanvasObjectListIter_op_inc1 }};
//         %operator a2dCanvasObjectListIter& operator++( int )
static int LUACALL wxLua_a2dCanvasObjectListIter_op_inc1(lua_State *L)
{
    // int arg1
    int arg1 = (int)wxlua_getnumbertype(L, 2);
    // get this
    a2dCanvasObjectListIter * self = (a2dCanvasObjectListIter 
*)wxluaT_getuserdatatype(L, 1, wxluatype_a2dCanvasObjectListIter);
    // call op_inc
    a2dCanvasObjectListIter* returns = self;
    *returns = ((*self).operator++(arg1));
    // push the result datatype
    wxluaT_pushuserdatatype(L, returns, wxluatype_a2dCanvasObjectListIter);

    return 1;
}


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to