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
/
self-component.h
diff --git
a/include/babeltrace/graph/self-component.h
b/include/babeltrace/graph/self-component.h
index 65ff2e67de9853d0f3ec567e9ff41c2c310fa64b..0be09442831b26e7d4e099a0bb357e3fb72e9476 100644
(file)
--- a/
include/babeltrace/graph/self-component.h
+++ b/
include/babeltrace/graph/self-component.h
@@
-23,7
+23,7
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
-/* For bt_component, bt_self_component */
+/* For bt_component, bt_self_component
, __BT_UPCAST
*/
#include <babeltrace/types.h>
#ifdef __cplusplus
#include <babeltrace/types.h>
#ifdef __cplusplus
@@
-43,7
+43,7
@@
static inline
const bt_component *bt_self_component_as_component(
bt_self_component *self_component)
{
const bt_component *bt_self_component_as_component(
bt_self_component *self_component)
{
- return
(const void *) self_component
;
+ return
__BT_UPCAST(bt_component, self_component)
;
}
extern void *bt_self_component_get_data(
}
extern void *bt_self_component_get_data(
This page took
0.023134 seconds
and
4
git commands to generate.