Add gebs_scratch_arena_reset()
This commit is contained in:
6
gebs.h
6
gebs.h
@ -264,6 +264,7 @@ void gebs_rebuild_self1_alloc(Gebs_Allocator *alloc, int argc, char ** argv,
|
|||||||
extern Gebs_Arena *gebs_scratch_arena;
|
extern Gebs_Arena *gebs_scratch_arena;
|
||||||
|
|
||||||
char *gebs_fmt(const char *fmt, ...);
|
char *gebs_fmt(const char *fmt, ...);
|
||||||
|
void gebs_scratch_arena_reset(void);
|
||||||
|
|
||||||
#ifdef GEBS_IMPLEMENTATION
|
#ifdef GEBS_IMPLEMENTATION
|
||||||
|
|
||||||
@ -479,6 +480,11 @@ char *gebs_fmt(const char *fmt, ...)
|
|||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void gebs_scratch_arena_reset(void)
|
||||||
|
{
|
||||||
|
gebs_arena_reset(gebs_scratch_arena);
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Filesystem operations
|
// Filesystem operations
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user