[ion] Add a C bridge for the logging function

Change-Id: I70cc18700c6cf392e98c4ff89df897b330bde807
This commit is contained in:
Romain Goyet
2017-02-14 10:58:46 +01:00
parent 724fdb18e7
commit 335bccea4c
2 changed files with 20 additions and 0 deletions

14
ion/include/ion/c.h Normal file
View File

@@ -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

6
ion/src/c.cpp Normal file
View File

@@ -0,0 +1,6 @@
#include <ion.h>
#include <ion/c.h>
void ion_log_print(const char * message) {
Ion::Log::print(message);
}