no_inline on entry_point

This commit is contained in:
Ryan Fleury
2025-09-25 15:52:58 -07:00
parent 366c63e3ce
commit d1845bf51f
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -45,12 +45,24 @@
# define thread_static __declspec(thread)
#elif COMPILER_CLANG || COMPILER_GCC
# define thread_static __thread
#else
# error thread_static not defined for this compiler.
#endif
#if COMPILER_MSVC
# define force_inline __forceinline
#elif COMPILER_CLANG || COMPILER_GCC
# define force_inline __attribute__((always_inline))
#else
# error force_inline not defined for this compiler.
#endif
#if COMPILER_MSVC
# define no_inline __declspec(noinline)
#elif COMPILER_CLANG || COMPILER_GCC
# define no_inline __attribute__((noinline))
#else
# error no_inline not defined for this compiler.
#endif
////////////////////////////////
+1 -1
View File
@@ -319,7 +319,7 @@ internal Guid os_make_guid(void);
#if BUILD_ENTRY_DEFINING_UNIT
raddbg_entry_point(entry_point);
internal void entry_point(CmdLine *cmdline);
internal no_inline void entry_point(CmdLine *cmdline);
#endif
#endif // OS_CORE_H