> That [luaL_checkversion] should be useful, thanks! Moreover, luaL_checkversion is called by luaL_register and so every C library that uses luaL_register to export its functions automatically checks version consistency.