Files
Cesarus85--ringfall-mjolnir-vr/source/cseries/errors.h
T
punpckhdq fb0d814535 Declare .comm data in TUs instead of headers (#26)
* Declare .comm data in TUs instead of headers

* Update files.h

* Include
2026-06-16 12:49:22 +01:00

56 lines
894 B
C

/*
ERRORS.H
*/
#ifndef __ERRORS_H
#define __ERRORS_H
#pragma once
/* ---------- constants */
enum
{
_error_immediate = 0,
_error_delayed,
_error_silent,
_error_log,
NUMBER_OF_ERROR_MESSAGE_PRIORITIES,
};
enum
{
ERROR_MESSAGE_BUFFER_MAXIMUM_SIZE = 2048,
};
/* ---------- structures */
struct error_global_data
{
boolean delayed;
boolean output_to_debug_file;
boolean display_state;
boolean recursion_lock;
boolean overflow_suppression;
boolean suppress_all;
short message_buffer_size;
char message_buffer[ERROR_MESSAGE_BUFFER_MAXIMUM_SIZE];
};
/* ---------- prototypes/ERRORS.C */
void errors_initialize(void);
void errors_dispose(void);
void error(long priority, const char *format, ...);
void write_to_error_file(char *string, boolean date);
/* ---------- globals */
extern struct error_global_data error_globals;
/* ---------- public code */
#endif // __ERRORS_H