This commit is contained in:
Daniel Ledda
2025-11-10 05:36:00 +01:00
parent c137eb24a7
commit 27e7d74895
2 changed files with 21 additions and 3 deletions

15
core.c
View File

@@ -423,3 +423,18 @@ int intCompare(const void *a, const void *b) {
return (*x > *y) - (*x < *y);
}
#ifdef DJSTD_BASIC_ENTRY
int djstd_entry(Arena* arena, StringList args);
#ifndef DJSTD_BASIC_ENTRY_ARENA_ALLOC
#define DJSTD_BASIC_ENTRY_ARENA_ALLOC Megabytes(64)
#endif
int main(int argc, char **argv) {
initialiseDjStdCore();
Arena *arena = arenaAlloc(DJSTD_BASIC_ENTRY_ARENA_ALLOC);
StringList args = getArgs(arena, argc, argv);
return djstd_entry(arena, args);
}
#endif