| 145 | struct lua2object |
| 146 | { |
| 147 | static T invoke(lua_State *L, int index) |
| 148 | { |
| 149 | if(!lua_isuserdata(L,index)) |
| 150 | { |
| 151 | lua_pushstring(L, "no class at first argument. (forgot ':' expression ?)"); |
| 152 | lua_error(L); |
| 153 | } |
| 154 | return void2type<T>::invoke(user2type<user*>::invoke(L,index)->m_p); |
| 155 | } |
| 156 | }; |
| 157 | |
| 158 | template<typename T> |
nothing calls this directly
no test coverage detected