projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git]
/
src
/
plugins
/
ctf
/
fs-sink
/
fs-sink-ctf-meta.h
diff --git
a/src/plugins/ctf/fs-sink/fs-sink-ctf-meta.h
b/src/plugins/ctf/fs-sink/fs-sink-ctf-meta.h
index d6db67d9cbc46ecf2a835224d0a168aa5ee6af0a..063fb03a66c73a0f7758931e275e90e6adfa5782 100644
(file)
--- a/
src/plugins/ctf/fs-sink/fs-sink-ctf-meta.h
+++ b/
src/plugins/ctf/fs-sink/fs-sink-ctf-meta.h
@@
-630,8
+630,8
@@
struct fs_sink_ctf_named_field_class *
fs_sink_ctf_field_class_struct_borrow_member_by_index(
struct fs_sink_ctf_field_class_struct *fc, uint64_t index)
{
fs_sink_ctf_field_class_struct_borrow_member_by_index(
struct fs_sink_ctf_field_class_struct *fc, uint64_t index)
{
- BT_ASSERT(fc);
- BT_ASSERT(index < fc->members->len);
+ BT_ASSERT
_DBG
(fc);
+ BT_ASSERT
_DBG
(index < fc->members->len);
return &g_array_index(fc->members, struct fs_sink_ctf_named_field_class,
index);
}
return &g_array_index(fc->members, struct fs_sink_ctf_named_field_class,
index);
}
@@
-644,8
+644,8
@@
fs_sink_ctf_field_class_struct_borrow_member_by_name(
uint64_t i;
struct fs_sink_ctf_named_field_class *ret_named_fc = NULL;
uint64_t i;
struct fs_sink_ctf_named_field_class *ret_named_fc = NULL;
- BT_ASSERT(fc);
- BT_ASSERT(name);
+ BT_ASSERT
_DBG
(fc);
+ BT_ASSERT
_DBG
(name);
for (i = 0; i < fc->members->len; i++) {
struct fs_sink_ctf_named_field_class *named_fc =
for (i = 0; i < fc->members->len; i++) {
struct fs_sink_ctf_named_field_class *named_fc =
@@
-744,8
+744,8
@@
struct fs_sink_ctf_named_field_class *
fs_sink_ctf_field_class_variant_borrow_option_by_index(
struct fs_sink_ctf_field_class_variant *fc, uint64_t index)
{
fs_sink_ctf_field_class_variant_borrow_option_by_index(
struct fs_sink_ctf_field_class_variant *fc, uint64_t index)
{
- BT_ASSERT(fc);
- BT_ASSERT(index < fc->options->len);
+ BT_ASSERT
_DBG
(fc);
+ BT_ASSERT
_DBG
(index < fc->options->len);
return &g_array_index(fc->options, struct fs_sink_ctf_named_field_class,
index);
}
return &g_array_index(fc->options, struct fs_sink_ctf_named_field_class,
index);
}
@@
-758,8
+758,8
@@
fs_sink_ctf_field_class_variant_borrow_option_by_name(
uint64_t i;
struct fs_sink_ctf_named_field_class *ret_named_fc = NULL;
uint64_t i;
struct fs_sink_ctf_named_field_class *ret_named_fc = NULL;
- BT_ASSERT(fc);
- BT_ASSERT(name);
+ BT_ASSERT
_DBG
(fc);
+ BT_ASSERT
_DBG
(name);
for (i = 0; i < fc->options->len; i++) {
struct fs_sink_ctf_named_field_class *named_fc =
for (i = 0; i < fc->options->len; i++) {
struct fs_sink_ctf_named_field_class *named_fc =
This page took
0.023785 seconds
and
4
git commands to generate.