MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / is_luabind_function

Function is_luabind_function

Source/Misc/luabind/src/function.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45} // namespace unnamed
46
47LUABIND_API bool is_luabind_function(lua_State* L, int index)
48{
49 if (!lua_getupvalue(L, index, 2))
50 return false;
51 bool result = lua_touserdata(L, -1) == &function_tag;
52 lua_pop(L, 1);
53 return result;
54}
55
56namespace
57{

Callers 3

get_function_objectFunction · 0.85
do_call_member_selectionFunction · 0.85
add_overloadFunction · 0.85

Calls 4

lua_getupvalueFunction · 0.85
lua_touserdataFunction · 0.85
pushMethod · 0.45
interpreterMethod · 0.45

Tested by 1

get_function_objectFunction · 0.68