roza/lib/StatusLog.hpp

28 lines
417 B
C++

#ifndef roza_STATUSLOG_HPP
#define roza_STATUSLOG_HPP
#include "commons.hpp"
#include "SrcLoc.hpp"
#define STATUS_LEVEL(G) \
G(LEVEL_WARNING), \
G(LEVEL_ERROR), \
G(LEVEL_CRITICAL)
namespace roza
{
MAKE_ENUM(STATUS_LEVEL, Status);
class StatusLog
{
public:
explicit StatusLog();
virtual ~StatusLog();
void fatal(SrcLoc loc, std::string const& what);
private:
};
}
#endif