1 | /* This file is generated by aisc_mkpt. |
---|
2 | * Any changes you make here will be overwritten later! |
---|
3 | */ |
---|
4 | |
---|
5 | #ifndef ARB_MSG_H |
---|
6 | #define ARB_MSG_H |
---|
7 | |
---|
8 | /* define ARB attributes: */ |
---|
9 | #ifndef ATTRIBUTES_H |
---|
10 | # include <attributes.h> |
---|
11 | #endif |
---|
12 | |
---|
13 | |
---|
14 | /* arb_msg.cxx */ |
---|
15 | |
---|
16 | #ifndef _GLIBCXX_CSTDLIB |
---|
17 | #include <cstdlib> |
---|
18 | #endif |
---|
19 | #ifndef ARB_CORE_H |
---|
20 | #include "arb_core.h" |
---|
21 | #endif |
---|
22 | |
---|
23 | // return error and ensure none is exported |
---|
24 | #define RETURN_ERROR(err) arb_assert(!GB_have_error()); return (err) |
---|
25 | |
---|
26 | |
---|
27 | const char *GBS_vglobal_string(const char *templat, va_list parg) __ATTR__VFORMAT(1); |
---|
28 | char *GBS_vglobal_string_copy(const char *templat, va_list parg) __ATTR__VFORMAT(1); |
---|
29 | const char *GBS_global_string_to_buffer(char *buffer, size_t bufsize, const char *templat, ...) __ATTR__FORMAT(3); |
---|
30 | char *GBS_global_string_copy(const char *templat, ...) __ATTR__FORMAT(1); |
---|
31 | const char *GBS_global_string(const char *templat, ...) __ATTR__FORMAT(1); |
---|
32 | const char *GBS_static_string(const char *str); |
---|
33 | GB_ERROR GBK_assert_msg(const char *assertion, const char *file, int linenr); |
---|
34 | GB_ERROR GB_export_error(const char *error); |
---|
35 | GB_ERROR GB_export_errorf(const char *templat, ...) __ATTR__FORMAT(1) __ATTR__DEPRECATED_LATER("use GB_export_error(GBS_global_string(...))"); |
---|
36 | GB_ERROR GB_IO_error(const char *action, const char *filename); |
---|
37 | GB_ERROR GB_export_IO_error(const char *action, const char *filename) __ATTR__DEPRECATED_TODO("use GB_export_error(GB_IO_error(...))"); |
---|
38 | GB_ERROR GB_print_error(void) __ATTR__DEPRECATED_TODO("will be removed completely"); |
---|
39 | GB_ERROR GB_get_error(void) __ATTR__DEPRECATED_TODO("consider using either GB_have_error() or GB_await_error()"); |
---|
40 | bool GB_have_error(void); |
---|
41 | GB_ERROR GB_await_error(void); |
---|
42 | void GB_clear_error(void); |
---|
43 | GB_ERROR GB_failedTo_error(const char *do_something, const char *special, GB_ERROR error); |
---|
44 | GB_ERROR GB_append_exportedError(GB_ERROR error); |
---|
45 | class BackTraceInfo *GBK_get_backtrace(size_t skipFramesAtBottom); |
---|
46 | void GBK_dump_former_backtrace(class BackTraceInfo *trace, FILE *out, const char *message); |
---|
47 | void GBK_free_backtrace(class BackTraceInfo *trace); |
---|
48 | void GBK_dump_backtrace(FILE *out, const char *message); |
---|
49 | void GB_internal_error(const char *message); |
---|
50 | void GB_internal_errorf(const char *templat, ...) __ATTR__FORMAT(1); |
---|
51 | void GBK_terminate(const char *error) __ATTR__NORETURN; |
---|
52 | void GBK_terminatef(const char *templat, ...) __ATTR__FORMAT(1) __ATTR__NORETURN; |
---|
53 | |
---|
54 | inline void GBK_terminate_on_error(const char *error) { if (error) GBK_terminatef("Fatal error: %s", error); } |
---|
55 | |
---|
56 | void GB_warning(const char *message); |
---|
57 | void GB_warningf(const char *templat, ...) __ATTR__FORMAT(1); |
---|
58 | void GB_information(const char *message); |
---|
59 | void GB_informationf(const char *templat, ...) __ATTR__FORMAT(1); |
---|
60 | void GBS_reuse_buffer(const char *global_buffer); |
---|
61 | GB_ERROR GBK_system(const char *system_command) __ATTR__USERESULT; |
---|
62 | |
---|
63 | #else |
---|
64 | #error arb_msg.h included twice |
---|
65 | #endif /* ARB_MSG_H */ |
---|