diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-12-05 16:53:55 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-12-05 16:53:55 -0800 |
commit | b4cb7c06f94e2e91b22b7d82efd7943a82331d86 (patch) | |
tree | 99fa7085855875efa7422ee58f322f8c94bda860 /src/base/error/assert.c | |
parent | 07e77936d535e58b0aeb4f2a11400c1050556739 (diff) |
Chore: updated fs·walk to use new data structures
Completes the port to our standard library (up to malloc).
Diffstat (limited to 'src/base/error/assert.c')
-rw-r--r-- | src/base/error/assert.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/base/error/assert.c b/src/base/error/assert.c new file mode 100644 index 0000000..5e04ff2 --- /dev/null +++ b/src/base/error/assert.c @@ -0,0 +1,9 @@ +#include <u.h> +#include <base.h> + +noreturn void +·failassert(const char *expr, const char *file, int line, const char *func) +{ + fmt·fprint(sys·Stderr, "assert failed: %s (%s : %s: %d)\n", expr, file, func, line); + abort(); +} |