Comparison

util-src/encodings.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 7835:a809dcfd0c5b
comparison
equal deleted inserted replaced
7816:2624f4ee34a2 7818:54669df178c2
522 }; 522 };
523 523
524 /***************** end *****************/ 524 /***************** end *****************/
525 525
526 LUALIB_API int luaopen_util_encodings(lua_State* L) { 526 LUALIB_API int luaopen_util_encodings(lua_State* L) {
527 #if (LUA_VERSION_NUM > 501)
528 luaL_checkversion(L);
529 #endif
527 #ifdef USE_STRINGPREP_ICU 530 #ifdef USE_STRINGPREP_ICU
528 init_icu(); 531 init_icu();
529 #endif 532 #endif
530 lua_newtable(L); 533 lua_newtable(L);
531 534