summaryrefslogtreecommitdiffstats
path: root/dwarf_wrappers.cxx
diff options
context:
space:
mode:
authorTim Moore <moore@blackbox.bricoworks.com>2008-06-11 14:46:34 +0200
committerTim Moore <moore@blackbox.bricoworks.com>2008-06-11 14:49:20 +0200
commitba53ea9f51453154bca13c57988a17e009e80476 (patch)
tree32f1abdc0a53b52b61b55cba2a50a29e0f2362e9 /dwarf_wrappers.cxx
parent86bf665eac22efa78936a3059e7bc90ee10dcf4b (diff)
downloadsystemtap-steved-ba53ea9f51453154bca13c57988a17e009e80476.tar.gz
systemtap-steved-ba53ea9f51453154bca13c57988a17e009e80476.tar.xz
systemtap-steved-ba53ea9f51453154bca13c57988a17e009e80476.zip
Fix some logic inversions with dwfl_assert.
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);
+}