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
/
lib
/
graph
/
graph.h
diff --git
a/src/lib/graph/graph.h
b/src/lib/graph/graph.h
index 72cf121b7b4a0f120e10ee720ad259fed378a8d1..5fe6cb69fa0eb02c56e42f46f05e740be8525950 100644
(file)
--- a/
src/lib/graph/graph.h
+++ b/
src/lib/graph/graph.h
@@
-162,7
+162,7
@@
struct bt_graph {
static inline
void bt_graph_set_can_consume(struct bt_graph *graph, bool can_consume)
{
static inline
void bt_graph_set_can_consume(struct bt_graph *graph, bool can_consume)
{
- BT_ASSERT(graph);
+ BT_ASSERT
_DBG
(graph);
graph->can_consume = can_consume;
}
graph->can_consume = can_consume;
}
@@
-228,7
+228,8
@@
int bt_graph_configure(struct bt_graph *graph)
int status = BT_FUNC_STATUS_OK;
uint64_t i;
int status = BT_FUNC_STATUS_OK;
uint64_t i;
- BT_ASSERT(graph->config_state != BT_GRAPH_CONFIGURATION_STATE_FAULTY);
+ BT_ASSERT_DBG(graph->config_state !=
+ BT_GRAPH_CONFIGURATION_STATE_FAULTY);
if (G_LIKELY(graph->config_state ==
BT_GRAPH_CONFIGURATION_STATE_CONFIGURED)) {
if (G_LIKELY(graph->config_state ==
BT_GRAPH_CONFIGURATION_STATE_CONFIGURED)) {
This page took
0.024563 seconds
and
4
git commands to generate.