111#ifdef KINC_IMPLEMENTATION_ROOT
112#define KINC_IMPLEMENTATION
115#ifdef KINC_IMPLEMENTATION
117#ifndef KINC_IMPLEMENTATION_ROOT
118#undef KINC_IMPLEMENTATION
121#ifndef KINC_IMPLEMENTATION_ROOT
122#define KINC_IMPLEMENTATION
129#include <kinc/backend/MiniWindows.h>
130#include <kinc/backend/SystemMicrosoft.h>
142 va_start(args, format);
161 va_start(args, format);
169 va_start(args, format);
170 wchar_t buffer[4096];
171 kinc_microsoft_format(format, args, buffer);
172 MessageBoxW(NULL, buffer, L
"Error", 0);
186 wchar_t buffer[4096];
187 kinc_microsoft_format(format, args, buffer);
188 MessageBoxW(NULL, buffer, L
"Error", 0);
KINC_FUNC void kinc_error(void)
Exits the program and shows a generic error message.
KINC_FUNC void kinc_affirm_args(bool condition, const char *format, va_list args)
Equivalent to kinc_affirm_message but uses a va_list parameter.
KINC_FUNC void kinc_affirm_message(bool condition, const char *format,...)
Exits the program when a condition is untrue and shows a provided error message.
KINC_FUNC void kinc_affirm(bool condition)
Exits the program when a condition is untrue and shows a generic error message.
KINC_FUNC void kinc_error_message(const char *format,...)
Exits the program and shows a provided error message.
KINC_FUNC void kinc_error_args(const char *format, va_list args)
Equivalent to kinc_error_message but uses a va_list parameter.
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Contains basic logging functionality.
KINC_FUNC void kinc_log_args(kinc_log_level_t log_level, const char *format, va_list args)
Equivalent to kinc_log but uses a va_list parameter.