Kore 3
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1#ifndef KORE_ERROR_HEADER
2#define KORE_ERROR_HEADER
3
4#include <kore3/global.h>
5
6#include <stdarg.h>
7
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
34KORE_FUNC void kore_affirm(bool condition);
35
54KORE_FUNC void kore_affirm_message(bool condition, const char *format, ...);
55
72KORE_FUNC void kore_affirm_args(bool condition, const char *format, va_list args);
73
81KORE_FUNC void kore_error(void);
82
96KORE_FUNC void kore_error_message(const char *format, ...);
97
110KORE_FUNC void kore_error_args(const char *format, va_list args);
111
112#ifdef __cplusplus
113}
114#endif
115
116#endif
KORE_FUNC void kore_affirm_message(bool condition, const char *format,...)
Exits the program when a condition is untrue and shows a provided error message.
KORE_FUNC void kore_error_args(const char *format, va_list args)
Equivalent to kore_error_message but uses a va_list parameter.
KORE_FUNC void kore_affirm(bool condition)
Exits the program when a condition is untrue and shows a generic error message.
KORE_FUNC void kore_affirm_args(bool condition, const char *format, va_list args)
Equivalent to kore_affirm_message but uses a va_list parameter.
KORE_FUNC void kore_error(void)
Exits the program and shows a generic error message.
KORE_FUNC void kore_error_message(const char *format,...)
Exits the program and shows a provided error message.
Provides basic functionality that's used all over the place. There's usually no need to manually incl...