| 29 | namespace sol { |
| 30 | namespace detail { |
| 31 | inline bool xmovable(lua_State* leftL, lua_State* rightL) { |
| 32 | if (rightL == nullptr || leftL == nullptr || leftL == rightL) { |
| 33 | return false; |
| 34 | } |
| 35 | const void* leftregistry = lua_topointer(leftL, LUA_REGISTRYINDEX); |
| 36 | const void* rightregistry = lua_topointer(rightL, LUA_REGISTRYINDEX); |
| 37 | return leftregistry == rightregistry; |
| 38 | } |
| 39 | } // namespace detail |
| 40 | |
| 41 | class stateless_stack_reference { |
no outgoing calls
no test coverage detected