Newer
Older
Tardis / lang / error.h
@Jookia Jookia on 24 May 2023 322 bytes lang: Run clang-format
// SPDX-License-Identifier: MIT
// Copyright (c) 2023 John Watts and the LuminaSensum contributors

#ifndef ERROR_H
#define ERROR_H

// Aborts the program with a message
__attribute__((noreturn)) void abort_msg(const char *msg);

// Aborts the program if a value is true
void abort_if(int value, const char *msg);

#endif