blob: 1e480972b2c622478679345a7c06def0b03e75cb (
plain) (
tree)
|
|
// Copyright (c) 2020 Johannes Stoelp
#pragma once
#include "io.h"
#include "syscalls.h"
#define ERROR_ON(cond, fmt, ...) \
do { \
if ((cond)) { \
efmt("%s:%d " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
_exit(1); \
} \
} while (0)
void* memset(void* s, int c, size_t n);
|