| 842 | // Tinker Class Functions |
| 843 | template<typename T, typename F> |
| 844 | void class_def(lua_State* L, const char* name, F func) |
| 845 | { |
| 846 | push_meta(L, class_name<T>::name()); |
| 847 | if(lua_istable(L, -1)) |
| 848 | { |
| 849 | lua_pushstring(L, name); |
| 850 | new(lua_newuserdata(L,sizeof(F))) F(func); |
| 851 | push_functor(L, func); |
| 852 | lua_rawset(L, -3); |
| 853 | } |
| 854 | lua_pop(L, 1); |
| 855 | } |
| 856 | |
| 857 | // Tinker Class Variables |
| 858 | template<typename T, typename BASE, typename VAR> |
nothing calls this directly
no test coverage detected