X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b024b9e443552c94609fc56a240cdb199a329853..2b1e3b1eda0915dede0146e8ea5c183a0483acee:/src/bindings/lua/lua_host.cpp diff --git a/src/bindings/lua/lua_host.cpp b/src/bindings/lua/lua_host.cpp index 175be6ec03..7adcf7755b 100644 --- a/src/bindings/lua/lua_host.cpp +++ b/src/bindings/lua/lua_host.cpp @@ -30,8 +30,7 @@ sg_host_t sglua_check_host(lua_State * L, int index) lua_getfield(L, index, HOST_FIELDNAME); sg_host_t *pi = (sg_host_t *) luaL_checkudata(L, lua_gettop(L), HOST_MODULE_NAME); lua_pop(L, 1); - if (pi == nullptr) - XBT_ERROR("luaL_checkudata() returned nullptr"); + xbt_assert(pi != nullptr, "luaL_checkudata() returned nullptr"); sg_host_t ht = *pi; if (not ht) luaL_error(L, "null Host");