Introduce new intrusive container macros

This commit is contained in:
2025-06-19 21:59:39 +10:00
parent 1720cae8db
commit a01b773655
5 changed files with 708 additions and 552 deletions
+2 -2
View File
@@ -124,13 +124,13 @@ DN_API DN_Arena *DN_OS_TLSTopArena()
DN_API void DN_OS_TLSBeginFrame(DN_Arena *frame_arena)
{
DN_OSTLS *tls = DN_OS_TLSGet();
DN_OSTLS *tls = DN_OS_TLSGet();
tls->frame_arena = frame_arena;
}
DN_API DN_Arena *DN_OS_TLSFrameArena()
{
DN_OSTLS *tls = DN_OS_TLSGet();
DN_OSTLS *tls = DN_OS_TLSGet();
DN_Arena *result = tls->frame_arena;
DN_AssertF(result, "Frame arena must be set by calling DN_OS_TLSBeginFrame at the beginning of the frame");
return result;