Call user main from wrapper. May not be a great idea.

This commit is contained in:
2026-01-18 00:16:09 -05:00
parent c840536e1d
commit 350d198015
6 changed files with 37 additions and 9 deletions

View File

@@ -55,6 +55,7 @@ typedef struct
bool reported;
char stacktracebuf[AKERR_MAX_ERROR_STACKTRACE_BUF_LENGTH];
char *stacktracebufptr;
int stacktracebufremaining;
} akerr_ErrorContext;
#define AKERR_NOIGNORE __attribute__((warn_unused_result))
@@ -67,6 +68,7 @@ extern akerr_ErrorUnhandledErrorHandler akerr_handler_unhandled_error;
extern akerr_ErrorLogFunction akerr_log_method;
extern akerr_ErrorContext *__akerr_last_ignored;
akerr_ErrorContext AKERR_NOIGNORE *akerr_user_main(int argc, char **argv);
akerr_ErrorContext AKERR_NOIGNORE *akerr_release_error(akerr_ErrorContext *ptr);
akerr_ErrorContext AKERR_NOIGNORE *akerr_next_error();
char *akerr_name_for_status(int status, char *name);