diff options
author | Tim Moore <moore@blackbox.bricoworks.com> | 2008-06-11 14:46:34 +0200 |
---|---|---|
committer | Tim Moore <moore@blackbox.bricoworks.com> | 2008-06-11 14:49:20 +0200 |
commit | ba53ea9f51453154bca13c57988a17e009e80476 (patch) | |
tree | 32f1abdc0a53b52b61b55cba2a50a29e0f2362e9 /dwarf_wrappers.cxx | |
parent | 86bf665eac22efa78936a3059e7bc90ee10dcf4b (diff) | |
download | systemtap-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.cxx | 6 |
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); +} |