Stripping prefixes
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
#define GEBS_NO_PREFIX
|
||||
#define GEBS_IMPLEMENTATION
|
||||
#include "../gebs.h"
|
||||
|
||||
@ -8,19 +9,19 @@ typedef struct {
|
||||
|
||||
int main(void)
|
||||
{
|
||||
Gebs_Arena *arena = gebs_arena_make(sizeof(int));
|
||||
defer { gebs_arena_destroy(arena); }
|
||||
Arena *arena = arena_make(sizeof(int));
|
||||
defer { arena_destroy(arena); }
|
||||
|
||||
Ints ints = {0};
|
||||
defer { gebs_list_free_alloc(arena, &ints); }
|
||||
defer { list_free_alloc(arena, &ints); }
|
||||
for (size_t i = 0; i < 1000; i++) {
|
||||
gebs_list_append_alloc(arena, &ints, i);
|
||||
list_append_alloc(arena, &ints, i);
|
||||
}
|
||||
for (size_t i = 0; i < ints.count; i++) {
|
||||
printf("%zu\n", i);
|
||||
}
|
||||
|
||||
printf("%s\n", gebs_fmt("Hello formatting %d", 124));
|
||||
printf("%s\n", fmt("Hello formatting %d", 124));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user