Software / code / prosody
Comparison
util-src/net.c @ 7818:54669df178c2
util-src: Make C modules assert that the Lua runtime matches what it was compiled for
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 08 Jan 2017 14:21:08 +0100 |
| parent | 6789:6b180e77c97a |
| child | 7889:b8d694646597 |
comparison
equal
deleted
inserted
replaced
| 7816:2624f4ee34a2 | 7818:54669df178c2 |
|---|---|
| 123 #endif | 123 #endif |
| 124 return 1; | 124 return 1; |
| 125 } | 125 } |
| 126 | 126 |
| 127 int luaopen_util_net(lua_State* L) { | 127 int luaopen_util_net(lua_State* L) { |
| 128 #if (LUA_VERSION_NUM > 501) | |
| 129 luaL_checkversion(L); | |
| 130 #endif | |
| 128 luaL_Reg exports[] = { | 131 luaL_Reg exports[] = { |
| 129 { "local_addresses", lc_local_addresses }, | 132 { "local_addresses", lc_local_addresses }, |
| 130 { NULL, NULL } | 133 { NULL, NULL } |
| 131 }; | 134 }; |
| 132 | 135 |