summaryrefslogtreecommitdiff
path: root/src/kiterror.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kiterror.c')
-rw-r--r--src/kiterror.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/kiterror.c b/src/kiterror.c
index eed779b..2c87414 100644
--- a/src/kiterror.c
+++ b/src/kiterror.c
@@ -12,23 +12,23 @@ static char _error_available = false;
static char _error_message[KIT_ERRBUFSIZE] = "\0";
const char* Kit_GetError() {
- if(_error_available) {
- _error_available = false;
- return _error_message;
- }
- return NULL;
+ if(_error_available) {
+ _error_available = false;
+ return _error_message;
+ }
+ return NULL;
}
void Kit_SetError(const char* fmt, ...) {
- assert(fmt != NULL);
- va_list args;
- va_start(args, fmt);
- vsnprintf(_error_message, KIT_ERRBUFSIZE, (char*)fmt, args);
- va_end(args);
- _error_available = true;
+ assert(fmt != NULL);
+ va_list args;
+ va_start(args, fmt);
+ vsnprintf(_error_message, KIT_ERRBUFSIZE, (char*)fmt, args);
+ va_end(args);
+ _error_available = true;
}
void Kit_ClearError() {
- _error_message[0] = 0;
- _error_available = false;
+ _error_message[0] = 0;
+ _error_available = false;
}