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 // ----------------------------------------------------------------------------