summaryrefslogtreecommitdiffstats
path: root/dwarf_wrappers.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dwarf_wrappers.cxx')
-rw-r--r--dwarf_wrappers.cxx6
1 files changed, 6 insertions, 0 deletions
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);
+}