MCPcopy Create free account
hub / github.com/ThePhD/sol2 / xmovable

Function xmovable

include/sol/stack_reference.hpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace 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 {

Callers 5

stateless_referenceMethod · 0.85
copy_assign_complexMethod · 0.85
move_assignMethod · 0.85
basic_referenceMethod · 0.85
stack_referenceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected