projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: headers: make static inline upcasts compatible with C++
[babeltrace.git]
/
include
/
babeltrace
/
graph
/
component-filter-const.h
diff --git
a/include/babeltrace/graph/component-filter-const.h
b/include/babeltrace/graph/component-filter-const.h
index b5d6947dd25877c21d1687a9a8b4727f3625482a..546761e375d5e0af1cb872afe21682714fda1b6c 100644
(file)
--- a/
include/babeltrace/graph/component-filter-const.h
+++ b/
include/babeltrace/graph/component-filter-const.h
@@
-26,7
+26,10
@@
#include <stdint.h>
#include <stdint.h>
-/* For bt_component, bt_component_filter, bt_port_input, bt_port_output */
+/*
+ * For bt_component, bt_component_filter, bt_port_input, bt_port_output,
+ * __BT_UPCAST_CONST
+ */
#include <babeltrace/types.h>
#ifdef __cplusplus
#include <babeltrace/types.h>
#ifdef __cplusplus
@@
-37,7
+40,7
@@
static inline
const bt_component *bt_component_filter_as_component_const(
const bt_component_filter *component)
{
const bt_component *bt_component_filter_as_component_const(
const bt_component_filter *component)
{
- return
(const void *) component
;
+ return
__BT_UPCAST_CONST(bt_component, component)
;
}
extern uint64_t bt_component_filter_get_input_port_count(
}
extern uint64_t bt_component_filter_get_input_port_count(
This page took
0.024238 seconds
and
4
git commands to generate.