| 652 | // global function |
| 653 | template<typename F> |
| 654 | void def(lua_State* L, const char* name, F func) |
| 655 | { |
| 656 | lua_pushlightuserdata(L, (void*)func); |
| 657 | push_functor(L, func); |
| 658 | lua_setglobal(L, name); |
| 659 | } |
| 660 | |
| 661 | // global variable |
| 662 | template<typename T> |
no test coverage detected