Previous 199869 Revisions Next

r34342 Sunday 11th January, 2015 at 09:19:39 UTC by Luca Bruno
luaengine: luabridge Stack<UINT64> specialization

Provide a Stack<UINT64> specialization for luabridge, later
needed by some APIs.

Signed-off-by: Luca Bruno <lucab@debian.org>
[src/emu]luaengine.c

trunk/src/emu/luaengine.c
r242853r242854
961961{
962962   resume(m_lua_state);
963963}
964
965
966//**************************************************************************
967//  LuaBridge Stack specializations
968//**************************************************************************
969
970namespace 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}


Previous 199869 Revisions Next


© 1997-2024 The MAME Team