Software /
code /
prosody
Comparison
util-src/signal.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 |
---|---|
382 #endif | 382 #endif |
383 {NULL, NULL} | 383 {NULL, NULL} |
384 }; | 384 }; |
385 | 385 |
386 int luaopen_util_signal(lua_State* L) { | 386 int luaopen_util_signal(lua_State* L) { |
387 #if (LUA_VERSION_NUM > 501) | |
388 luaL_checkversion(L); | |
389 #endif | |
387 int i = 0; | 390 int i = 0; |
388 | 391 |
389 /* add the library */ | 392 /* add the library */ |
390 lua_newtable(L); | 393 lua_newtable(L); |
391 luaL_setfuncs(L, lsignal_lib, 0); | 394 luaL_setfuncs(L, lsignal_lib, 0); |