MCPcopy Create free account
hub / github.com/apache/thrift / checktype

Function checktype

lib/lua/src/luasocket.c:70–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70static void *checktype(lua_State *L, int index, const char *typename) {
71 if (strcmp(typename, SOCKET_ANY) == 0 ||
72 strcmp(typename, SOCKET_CONN) == 0) {
73 return checkgroup(L, index, typename);
74 } else {
75 return luaL_checkudata(L, index, typename);
76 }
77}
78
79static void settype(lua_State *L, int index, const char *typename) {
80 luaL_getmetatable(L, typename);

Callers 8

l_socket_destroyFunction · 0.85
l_socket_sendFunction · 0.85
l_socket_receiveFunction · 0.85
l_socket_settimeoutFunction · 0.85
l_socket_getsockinfoFunction · 0.85
l_socket_acceptFunction · 0.85
l_socket_listenFunction · 0.85
l_socket_connectFunction · 0.85

Calls 1

checkgroupFunction · 0.85

Tested by

no test coverage detected