Add gebs_scratch_arena_reset()

This commit is contained in:
kamkow1
2025-05-20 00:08:02 +02:00
parent c015a4d861
commit 206b1c4f0a

6
gebs.h
View File

@ -264,6 +264,7 @@ void gebs_rebuild_self1_alloc(Gebs_Allocator *alloc, int argc, char ** argv,
extern Gebs_Arena *gebs_scratch_arena;
char *gebs_fmt(const char *fmt, ...);
void gebs_scratch_arena_reset(void);
#ifdef GEBS_IMPLEMENTATION
@ -479,6 +480,11 @@ char *gebs_fmt(const char *fmt, ...)
return buf;
}
void gebs_scratch_arena_reset(void)
{
gebs_arena_reset(gebs_scratch_arena);
}
// ----------------------------------------------------------------------------
// Filesystem operations
// ----------------------------------------------------------------------------