trunk/src/emu/luaengine.c
| r242853 | r242854 | |
| 961 | 961 | { |
| 962 | 962 | resume(m_lua_state); |
| 963 | 963 | } |
| 964 | |
| 965 | |
| 966 | //************************************************************************** |
| 967 | // LuaBridge Stack specializations |
| 968 | //************************************************************************** |
| 969 | |
| 970 | namespace luabridge { |
| 971 | template <> |
| 972 | struct Stack <UINT64> { |
| 973 | static inline void push (lua_State* L, UINT64 value) { |
| 974 | lua_pushunsigned(L, static_cast <lua_Unsigned> (value)); |
| 975 | } |
| 976 | |
| 977 | static inline UINT64 get (lua_State* L, int index) { |
| 978 | return static_cast <UINT64> (luaL_checkunsigned (L, index)); |
| 979 | } |
| 980 | }; |
| 981 | } |