mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
added new types, fixing lua part (nw)
This commit is contained in:
parent
cd78584ace
commit
989c67cea4
@ -2832,4 +2832,26 @@ namespace luabridge {
|
||||
return static_cast <unsigned long long> (luaL_checkunsigned (L, index));
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
struct Stack <char16_t> {
|
||||
static inline void push(lua_State* L, char16_t value) {
|
||||
lua_pushunsigned(L, static_cast <lua_Unsigned> (value));
|
||||
}
|
||||
|
||||
static inline char16_t get(lua_State* L, int index) {
|
||||
return static_cast <char16_t> (luaL_checkunsigned(L, index));
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
struct Stack <char32_t> {
|
||||
static inline void push(lua_State* L, char32_t value) {
|
||||
lua_pushunsigned(L, static_cast <lua_Unsigned> (value));
|
||||
}
|
||||
|
||||
static inline char32_t get(lua_State* L, int index) {
|
||||
return static_cast <char32_t> (luaL_checkunsigned(L, index));
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user