2015-11-05 15:05:25 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2015 Andrew Kelley
|
|
|
|
*
|
|
|
|
* This file is part of zig, which is MIT licensed.
|
|
|
|
* See http://opensource.org/licenses/MIT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ERROR_HPP
|
|
|
|
#define ERROR_HPP
|
|
|
|
|
2019-04-22 05:24:58 +08:00
|
|
|
#include "userland.h"
|
2015-11-05 15:05:25 +08:00
|
|
|
|
2018-11-07 00:09:14 +08:00
|
|
|
const char *err_str(Error err);
|
|
|
|
|
2019-04-18 03:58:20 +08:00
|
|
|
#define assertNoError(err) assert((err) == ErrorNone);
|
2015-11-05 15:05:25 +08:00
|
|
|
|
|
|
|
#endif
|