MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / xmovable

Function xmovable

extlibs/sol3/include/sol/sol.hpp:8208–8215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8206namespace sol {
8207 namespace detail {
8208 inline bool xmovable(lua_State* leftL, lua_State* rightL) {
8209 if (rightL == nullptr || leftL == nullptr || leftL == rightL) {
8210 return false;
8211 }
8212 const void* leftregistry = lua_topointer(leftL, LUA_REGISTRYINDEX);
8213 const void* rightregistry = lua_topointer(rightL, LUA_REGISTRYINDEX);
8214 return leftregistry == rightregistry;
8215 }
8216 } // namespace detail
8217
8218 class stateless_stack_reference {

Callers 5

stack_referenceMethod · 0.85
stateless_referenceMethod · 0.85
copy_assignMethod · 0.85
move_assignMethod · 0.85
basic_referenceMethod · 0.85

Calls 1

lua_topointerFunction · 0.85

Tested by

no test coverage detected