From 335bccea4cb094e3b337b20806fb9e5ba355ff9a Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Tue, 14 Feb 2017 10:58:46 +0100 Subject: [PATCH] [ion] Add a C bridge for the logging function Change-Id: I70cc18700c6cf392e98c4ff89df897b330bde807 --- ion/include/ion/c.h | 14 ++++++++++++++ ion/src/c.cpp | 6 ++++++ 2 files changed, 20 insertions(+) create mode 100644 ion/include/ion/c.h create mode 100644 ion/src/c.cpp diff --git a/ion/include/ion/c.h b/ion/include/ion/c.h new file mode 100644 index 000000000..5bfacf3ae --- /dev/null +++ b/ion/include/ion/c.h @@ -0,0 +1,14 @@ +#ifndef ION_C_H +#define ION_C_H + +#ifdef __cplusplus +extern "C" { +#endif + +void ion_log_print(const char * message) { + +#ifdef __cplusplus +extern "C" { +#endif + +#endif diff --git a/ion/src/c.cpp b/ion/src/c.cpp new file mode 100644 index 000000000..8571b890a --- /dev/null +++ b/ion/src/c.cpp @@ -0,0 +1,6 @@ +#include +#include + +void ion_log_print(const char * message) { + Ion::Log::print(message); +}