projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib: add pre condition asserts to check current thread has no error
[babeltrace.git]
/
src
/
lib
/
trace-ir
/
clock-snapshot.c
diff --git
a/src/lib/trace-ir/clock-snapshot.c
b/src/lib/trace-ir/clock-snapshot.c
index cbce39c14e022f90fd93c74473f719dc314dba77..19aab80aabdfc34f0e6a18515c9f394a32a31a84 100644
(file)
--- a/
src/lib/trace-ir/clock-snapshot.c
+++ b/
src/lib/trace-ir/clock-snapshot.c
@@
-149,6
+149,7
@@
bt_clock_snapshot_get_ns_from_origin(
{
int ret = BT_FUNC_STATUS_OK;
+ BT_ASSERT_PRE_DEV_NO_ERROR();
BT_ASSERT_PRE_DEV_NON_NULL(clock_snapshot, "Clock snapshot");
BT_ASSERT_PRE_DEV_NON_NULL(ret_value_ns, "Value (ns) (output)");
BT_ASSERT_PRE_DEV(clock_snapshot->is_set,
This page took
0.023282 seconds
and
4
git commands to generate.