-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLuaCallDispatcher.cpp
63 lines (60 loc) · 1.24 KB
/
LuaCallDispatcher.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include "LuaCallDispatcher.h"
#include "LUAObject.h"
//
//template<>
//int LuaCallDispatcher::Read(lua_State* L, int index) const
//{
// return (int)lua_tointeger(L, index);
//}
//
//template<>
//float LuaCallDispatcher::Read(lua_State* L, int index) const
//{
// return (float)lua_tonumber(L, index);
//}
//
//template<>
//double LuaCallDispatcher::Read(lua_State* L, int index) const
//{
// return lua_tonumber(L, index);
//}
//
//template<>
//bool LuaCallDispatcher::Read(lua_State* L, int index) const
//{
// return lua_toboolean(L, index) != 0;
//}
//
//template<>
//const char* LuaCallDispatcher::Read(lua_State* L, int index) const
//{
// return lua_tostring(L, index);
//}
//
//template<>
//std::string LuaCallDispatcher::Read(lua_State* L, int index) const
//{
// return lua_tostring(L, index);
//}
//
//template<>
//lua_CFunction LuaCallDispatcher::Read(lua_State* L, int index) const
//{
// return lua_tocfunction(L, index);
//}
//
//template<>
//LuaCallDispatcher::LuaUserData LuaCallDispatcher::Read(lua_State* L, int index) const
//{
// return lua_touserdata(L, index);
//}
//
template <>
struct LuaCallDispatcher::_pop<0, void>
{
typedef void type;
static void apply(lua_State* L)
{
return ;
}
};