eliminate entry point 'mode'/type; just gather argc/argv as part of command line parse

This commit is contained in:
Ryan Fleury
2024-11-08 10:33:28 -08:00
parent 0773b6d282
commit 158dd742ad
9 changed files with 31 additions and 29 deletions
+1 -7
View File
@@ -4,13 +4,7 @@
#ifndef BASE_ENTRY_POINT_H
#define BASE_ENTRY_POINT_H
#if BASE_ENTRY_POINT_ARGCV
typedef void (*EntryPoint)(int argc, char **argv);
#else
typedef void (*EntryPoint)(CmdLine *cmdline);
#endif
internal void main_thread_base_entry_point(EntryPoint entry_point, int argc, char **argv);
internal void main_thread_base_entry_point(int argc, char **argv);
internal void supplement_thread_base_entry_point(void (*entry_point)(void *params), void *params);
internal U64 update_tick_idx(void);
internal B32 update(void);