public static bool IsLuaFunction(this IntPtr L, int index) { return(Lua.lua_type(L, index) == (int)LuaTypes.LUA_TFUNCTION); }