Commit 8e04cf4f authored by Xavier Thompson's avatar Xavier Thompson

Add logger.hpp

parent 73ffae31
#ifndef TYPON_LOGGER_HPP_INCLUDED
#define TYPON_LOGGER_HPP_INCLUDED
#include <cstdio>
#include <typon/scheduler.hpp>
#define LOG(fmt, ...) \
printf( "[%2u] " fmt "\n", Scheduler::thread_id __VA_OPT__(,) __VA_ARGS__)
#endif // TYPON_LOGGER_HPP_INCLUDED
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment