4 #include "lqt_common.hpp"
9 #define LUA_FUNCTION_REGISTRY "Registry Function"
11 //# define SEE_STACK(L, j) for (int j=1;j<=lua_gettop(L);j++) { qDebug() << j << '=' << luaL_typename(L, j) << '@' << lua_topointer (L, j); }
14 class LuaFunction
: public QObject
{
18 LuaFunction(lua_State
*state
);
19 virtual ~LuaFunction();
23 static int __gc (lua_State
*L
);
28 void function (double arg1
);
29 void function (int arg1
);
30 void function (const char * arg1
);
31 void function (bool arg1
);
32 void function (int arg1
, const char * arg2
);
33 void function (bool arg1
, double arg2
);
34 void function (bool arg1
, int arg2
);
35 void function (int arg1
, int arg2
);
36 void function (bool arg1
, bool arg2
);
37 void function (bool arg1
, const char * arg2
);
38 void function (int arg1
, double arg2
);
39 void function (double arg1
, int arg2
);
40 void function (const char * arg1
, bool arg2
);
41 void function (int arg1
, bool arg2
);
42 void function (double arg1
, double arg2
);
43 void function (const char * arg1
, double arg2
);
44 void function (const char * arg1
, int arg2
);
45 void function (double arg1
, bool arg2
);
46 void function (double arg1
, const char * arg2
);
47 void function (const char * arg1
, const char * arg2
);
51 #endif // __LQT_FUNCTION