projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: merge `assert-pre.h` and `assert-post.h` into `assert-cond.h`
[babeltrace.git]
/
src
/
lib
/
graph
/
graph.c
diff --git
a/src/lib/graph/graph.c
b/src/lib/graph/graph.c
index 11c7c29d17fd5a231861f6ea284c74d2fd94cabf..4645e0f5acfc1541ac8fdb909ec7463cfbbd2a1d 100644
(file)
--- a/
src/lib/graph/graph.c
+++ b/
src/lib/graph/graph.c
@@
-9,8
+9,7
@@
#include "lib/logging.h"
#include "common/assert.h"
#include "lib/logging.h"
#include "common/assert.h"
-#include "lib/assert-pre.h"
-#include "lib/assert-post.h"
+#include "lib/assert-cond.h"
#include <babeltrace2/graph/graph.h>
#include <babeltrace2/graph/component.h>
#include <babeltrace2/graph/port.h>
#include <babeltrace2/graph/graph.h>
#include <babeltrace2/graph/component.h>
#include <babeltrace2/graph/port.h>
@@
-865,7
+864,7
@@
bool component_name_exists(struct bt_graph *graph, const char *name)
struct bt_component *other_comp = graph->components->pdata[i];
if (strcmp(name, bt_component_get_name(other_comp)) == 0) {
struct bt_component *other_comp = graph->components->pdata[i];
if (strcmp(name, bt_component_get_name(other_comp)) == 0) {
- BT_ASSERT_
PRE
_MSG("Another component with the same name already exists in the graph: "
+ BT_ASSERT_
COND
_MSG("Another component with the same name already exists in the graph: "
"%![other-comp-]+c, name=\"%s\"",
other_comp, name);
exists = true;
"%![other-comp-]+c, name=\"%s\"",
other_comp, name);
exists = true;
This page took
0.02435 seconds
and
4
git commands to generate.