resonance 1.0.1
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdarg.h>
4
5#ifdef __cplusplus
6#include "os/hxstr.h"
7
21void Warn(const char *pszFormat, ...);
22
41void Fatal(const char *pszFormat, ...);
42
56void Error(const char *pszFormat, ...);
57
71void SysAssert(const char *pszMessage, const char *pszFile, unsigned int nLine)
72 __attribute__((noreturn));
73
85void AlertScriptTemplate(int nTemplate, ...);
86
106HxStr FormatMessage(const HxStr &format, va_list args, int nUnused);
107
119HxStr FmtImp(const HxStr &format, va_list args);
120
132HxStr FormatHxStr(const char *pszFormat, ...);
133
145HxStr FormatScriptTemplate(int nTemplate, ...);
146
160void ShowReportedMessage(const HxStr &text, int nDuration);
161
174void ShowAlertMessage(const HxStr &text);
175#endif
176
194void ShowScreenMessage(const char *pszText, int nDuration);
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
void ShowScreenMessage(const char *pszText, int nDuration)
Show a message for a while, rather than writing it to the console.