sketch out logging stub, to begin marking up debugger layers with logging - high level stuff still wip

This commit is contained in:
Ryan Fleury
2024-04-17 14:32:09 -07:00
parent a954317500
commit b995909997
12 changed files with 183 additions and 3 deletions
+32
View File
@@ -0,0 +1,32 @@
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#ifndef BASE_LOG_H
#define BASE_LOG_H
////////////////////////////////
//~ rjf: Log Type
typedef struct Log Log;
struct Log
{
Arena *arena;
U64 log_buffer_start_pos;
String8List log_buffer_strings;
};
////////////////////////////////
//~ rjf: Log Creation/Selection
internal Log *log_alloc(void);
internal void log_release(Log *log);
internal void log_select(Log *log);
////////////////////////////////
//~ rjf: Log Building/Clearing
internal void log_msg(String8 string);
internal void log_msgf(char *fmt, ...);
internal void log_clear(void);
#endif // BASE_LOG_H