add ability to override entry point type

This commit is contained in:
Nikita Smith
2024-11-07 11:54:25 -08:00
parent ce9d43a92e
commit 0dd05169ee
5 changed files with 28 additions and 9 deletions
+7 -1
View File
@@ -4,7 +4,13 @@
#ifndef BASE_ENTRY_POINT_H
#define BASE_ENTRY_POINT_H
internal void main_thread_base_entry_point(void (*entry_point)(CmdLine *cmdline), char **arguments, U64 arguments_count);
#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 supplement_thread_base_entry_point(void (*entry_point)(void *params), void *params);
internal U64 update_tick_idx(void);
internal B32 update(void);