Software /
code /
prosody
Comparison
util-src/poll.c @ 9440:1ddecde4ce98
util.poll: Tweak metatable name field
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 06 Oct 2018 18:32:57 +0200 |
parent | 9437:b202aa1e2d7b |
child | 9446:6b4d28eb19cf |
comparison
equal
deleted
inserted
replaced
9439:988392a56495 | 9440:1ddecde4ce98 |
---|---|
27 | 27 |
28 #include <lualib.h> | 28 #include <lualib.h> |
29 #include <lauxlib.h> | 29 #include <lauxlib.h> |
30 | 30 |
31 #ifdef USE_EPOLL | 31 #ifdef USE_EPOLL |
32 #define STATE_MT "util.poll.epoll" | 32 #define STATE_MT "util.poll<epoll>" |
33 #else | 33 #else |
34 #define STATE_MT "util.poll.select" | 34 #define STATE_MT "util.poll<select>" |
35 #endif | 35 #endif |
36 | 36 |
37 #if (LUA_VERSION_NUM == 501) | 37 #if (LUA_VERSION_NUM == 501) |
38 #define luaL_setmetatable(L, tname) luaL_getmetatable(L, tname); lua_setmetatable(L, -2) | 38 #define luaL_setmetatable(L, tname) luaL_getmetatable(L, tname); lua_setmetatable(L, -2) |
39 #endif | 39 #endif |