1
0
forked from GitHub/gf-core

in libgu mark explicitly all functions that belong to the API

This commit is contained in:
krasimir
2017-04-19 12:30:40 +00:00
parent 38dd190ff4
commit a03a99b9c7
35 changed files with 311 additions and 372 deletions

View File

@@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdarg.h>
const char*
static const char*
gu_assert_mode_descs[] = {
[GU_ASSERT_PRECOND] = "precondition failed",
[GU_ASSERT_POSTCOND] = "postcondition failed",
@@ -11,7 +11,7 @@ gu_assert_mode_descs[] = {
[GU_ASSERT_NEVER] = "control should not reach here",
};
void
GU_API void
gu_abort_v_(GuAssertMode mode,
const char* file, const char* func, int line,
const char* msg_fmt, va_list args)
@@ -26,7 +26,7 @@ gu_abort_v_(GuAssertMode mode,
abort();
}
void
GU_API void
gu_abort_(GuAssertMode mode,
const char* file, const char* func, int line,
const char* msg_fmt, ...)
@@ -36,9 +36,8 @@ gu_abort_(GuAssertMode mode,
gu_abort_v_(mode, file, func, line, msg_fmt, args);
va_end(args);
}
void
GU_API void
gu_fatal(const char* fmt, ...)
{
va_list args;