mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[ion] Add a C bridge for the logging function
Change-Id: I70cc18700c6cf392e98c4ff89df897b330bde807
This commit is contained in:
14
ion/include/ion/c.h
Normal file
14
ion/include/ion/c.h
Normal 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
6
ion/src/c.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <ion.h>
|
||||
#include <ion/c.h>
|
||||
|
||||
void ion_log_print(const char * message) {
|
||||
Ion::Log::print(message);
|
||||
}
|
||||
Reference in New Issue
Block a user