| 10954 | using unique_tag = detail::inheritance_unique_cast_function; |
| 10955 | |
| 10956 | inline void* alloc_newuserdata(lua_State* L, std::size_t bytesize) { |
| 10957 | #if SOL_LUA_VERSION_I_ >= 504 |
| 10958 | return lua_newuserdatauv(L, bytesize, 1); |
| 10959 | #else |
| 10960 | return lua_newuserdata(L, bytesize); |
| 10961 | #endif |
| 10962 | } |
| 10963 | |
| 10964 | constexpr std::uintptr_t align(std::size_t alignment, std::uintptr_t ptr, std::size_t& space) { |
| 10965 | // this handles arbitrary alignments... |
no test coverage detected