Files
pcem/includes/private/logging-internal.h
Josep Maria Antolín Segura 7643edbb3a Logging improvements. (#143)
Since we don't flush the messages to file immediately to avoid slowdowns, sometimes the application is closed before all the messages are written to the log.
This includes flushing the log when stopping the emulation, and tries to close the log file when closing the application. (It might need some more work to close it in all cases).
Also, some redundancy in logging.c and x86seg.c has been removed.
2022-05-12 19:33:21 -07:00

17 lines
375 B
C

#ifndef __PCEM_LOGGING_INTERNAL_H__
#define __PCEM_LOGGING_INTERNAL_H__
#ifdef __cplusplus
extern "C" {
#endif
// Used to flush the log contents to disk.
void pclog_flush();
// Used to close the file handle and flush the last contents to disk. Only use it when closing the application
void pclog_end();
#ifdef __cplusplus
}
#endif
#endif /* __PCEM_LOGGING_INTERNAL_H__ */