MCPcopy Create free account
hub / github.com/Tencent/UnLua / dirty

Function dirty

Plugins/UnLuaExtensions/LuaSocket/Source/src/select.cpp:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static int dirty(lua_State *L) {
105 int is = 0;
106 lua_pushstring(L, "dirty");
107 lua_gettable(L, -2);
108 if (!lua_isnil(L, -1)) {
109 lua_pushvalue(L, -2);
110 lua_call(L, 1, 1);
111 is = lua_toboolean(L, -1);
112 }
113 lua_pop(L, 1);
114 return is;
115}
116
117static void collect_fd(lua_State *L, int tab, int itab,
118 fd_set *set, t_socket *max_fd) {

Callers 1

check_dirtyFunction · 0.85

Calls 4

lua_pushstringFunction · 0.85
lua_gettableFunction · 0.85
lua_pushvalueFunction · 0.85
lua_tobooleanFunction · 0.85

Tested by

no test coverage detected