From 473ab55ee3530e88446cea15fe38ce4e090758fc Mon Sep 17 00:00:00 2001 From: Jeff Ithier Date: Thu, 24 Oct 2024 13:05:08 +0200 Subject: [PATCH] WIP: Propagate error cause to CXX API --- iceoryx2-ffi/ffi/cbindgen.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/iceoryx2-ffi/ffi/cbindgen.toml b/iceoryx2-ffi/ffi/cbindgen.toml index 5ce9db295..a682fa831 100644 --- a/iceoryx2-ffi/ffi/cbindgen.toml +++ b/iceoryx2-ffi/ffi/cbindgen.toml @@ -24,10 +24,18 @@ header = """// Copyright (c) 2024 Contributors to the Eclipse Foundation // SPDX-License-Identifier: Apache-2.0 OR MIT // NOTE: This file is generated by cbindgen! Don't modify manually! + +#ifdef __cplusplus +extern "C" { +#endif """ # default: "" -trailer = "" +trailer = """ +#ifdef __cplusplus +} +#endif +""" # default: "" include_guard = "IOX2_C_BINDINGS_H"