From ba53ea9f51453154bca13c57988a17e009e80476 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Wed, 11 Jun 2008 14:46:34 +0200 Subject: Fix some logic inversions with dwfl_assert. --- dwarf_wrappers.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dwarf_wrappers.cxx') diff --git a/dwarf_wrappers.cxx b/dwarf_wrappers.cxx index ad690d78..93cb36a2 100644 --- a/dwarf_wrappers.cxx +++ b/dwarf_wrappers.cxx @@ -38,3 +38,9 @@ void dwarf_assert(const string& desc, int rc) msg += std::strerror (rc); throw semantic_error (msg); } + +void dwfl_assert(const std::string& desc, bool condition) +{ + if (!condition) + dwarf_assert(desc, -1); +} -- cgit