| 45 | } // namespace unnamed |
| 46 | |
| 47 | LUABIND_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 | |
| 56 | namespace |
| 57 | { |