c-template/sdk/logger.h

16 lines
463 B
C
Raw Normal View History

2019-04-12 22:02:49 +03:00
#ifndef FLUENCE_C_SDK_LOGGER_H
#define FLUENCE_C_SDK_LOGGER_H
#define __LOGGER_IMPORT(name) \
__attribute__((__import_module__("logger"), __import_name__(#name)))
2019-04-21 22:23:36 +03:00
/**
* Writes provided utf8 string to Wasm VM logger.
2019-04-21 22:23:36 +03:00
*
* @param str a pointer to the string that should be logged.
* @param len a size of the string that should be logged.
2019-04-21 22:23:36 +03:00
*/
void log_utf8_string(const char *str, int len) __LOGGER_IMPORT(log_utf8_string);
2019-04-12 22:02:49 +03:00
#endif //FLUENCE_C_SDK_LOGGER_H