]> sourceware.org Git - libabigail.git/commitdiff
ctf-reader: Use ABG_ASSERT instead of assert
authorGuillermo E. Martinez via Libabigail <libabigail@sourceware.org>
Thu, 18 Nov 2021 23:23:30 +0000 (17:23 -0600)
committerDodji Seketeli <dodji@redhat.com>
Tue, 23 Nov 2021 14:36:06 +0000 (15:36 +0100)
* tools/abidiff.cc (main): Use ABG_ASSERT instead of assert.
* tools/abilint.cc: Likewise.

Signed-off-by: Guillermo E. Martinez <guillermo.e.martinez@oracle.com>
tools/abidiff.cc
tools/abilint.cc

index 309596164ec7162ea47269820e80b5bd652a9348..779fa18bcde54896120dddf186730a5bf09cb533 100644 (file)
@@ -1172,8 +1172,7 @@ main(int argc, char* argv[])
                 abigail::ctf_reader::read_context_sptr ctxt
                   = abigail::ctf_reader::create_read_context(opts.file1,
                                                              env.get());
-
-                assert (ctxt);
+                ABG_ASSERT(ctxt);
                 c1 = abigail::ctf_reader::read_corpus(ctxt.get(),
                                                       c1_status);
               }
@@ -1256,10 +1255,9 @@ main(int argc, char* argv[])
                 abigail::ctf_reader::read_context_sptr ctxt
                   = abigail::ctf_reader::create_read_context(opts.file2,
                                                              env.get());
-
-                assert (ctxt);
-                c2 = abigail::ctf_reader::read_corpus (ctxt.get(),
-                                                       c2_status);
+                ABG_ASSERT(ctxt);
+                c2 = abigail::ctf_reader::read_corpus(ctxt.get(),
+                                                      c2_status);
               }
             else
 #endif
index 2e9bae49df9dae8cd1c68daea99f4c1abb85a84f..efddd77b9ece2cf954c1357c83ce07d3a6ea2949 100644 (file)
@@ -373,9 +373,8 @@ main(int argc, char* argv[])
                 abigail::ctf_reader::read_context_sptr ctxt
                   = abigail::ctf_reader::create_read_context(opts.file_path,
                                                              env.get());
-
-                assert (ctxt);
-                corp = abigail::ctf_reader::read_corpus (ctxt.get(), s);
+                ABG_ASSERT(ctxt);
+                corp = abigail::ctf_reader::read_corpus(ctxt.get(), s);
               }
             else
 #endif
This page took 0.035323 seconds and 5 git commands to generate.