From 206b1c4f0a2a1c1db0bc2cd051b252c7ccca0466 Mon Sep 17 00:00:00 2001 From: kamkow1 Date: Tue, 20 May 2025 00:08:02 +0200 Subject: [PATCH] Add gebs_scratch_arena_reset() --- gebs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gebs.h b/gebs.h index 195742f..5b52c83 100644 --- a/gebs.h +++ b/gebs.h @@ -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 // ----------------------------------------------------------------------------