diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-03-20 01:58:26 +0000 |
---|---|---|
committer | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-05-19 03:52:45 +0100 |
commit | e10f761362bacaabf89da298cd4f80d88e345ef9 (patch) | |
tree | 7604773b4aa2b53047e79e3e9868c6697db7cb80 /epan/wslua/wslua_proto.c | |
parent | 1fe4638648d55d02171d8155d701072f44d63300 (diff) |
wslua: Replace g_assert() with ws_assert()
Diffstat (limited to 'epan/wslua/wslua_proto.c')
-rw-r--r-- | epan/wslua/wslua_proto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c index e857b2b4ca..52fc03b6c5 100644 --- a/epan/wslua/wslua_proto.c +++ b/epan/wslua/wslua_proto.c @@ -233,7 +233,7 @@ WSLUA_METHOD Proto_register_heuristic(lua_State* L) { Proto proto = checkProto(L,1); const gchar *listname = luaL_checkstring(L, WSLUA_ARG_Proto_register_heuristic_LISTNAME); const gchar *proto_name = proto->name; - const int top = lua_gettop(L); + const int top _U_ = lua_gettop(L); gchar *short_name; if (!proto_name || proto->hfid == -1) { @@ -278,7 +278,7 @@ WSLUA_METHOD Proto_register_heuristic(lua_State* L) { lua_replace(L, WSLUA_ARG_Proto_register_heuristic_FUNC); /* pop the lua_dissectors_table */ lua_pop(L, 1); - g_assert(top == lua_gettop(L)); + ws_assert(top == lua_gettop(L)); } /* heuristic functions are stored in a table in the registry; the registry has a @@ -314,7 +314,7 @@ WSLUA_METHOD Proto_register_heuristic(lua_State* L) { /* ok, we're done with lua stuff, pop what we added to the stack */ lua_pop(L,2); /* pop the lists table and the listname table */ - g_assert(top == lua_gettop(L)); + ws_assert(top == lua_gettop(L)); short_name = wmem_strconcat(NULL, proto->loname, "_", listname, NULL); |