mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-13 07:32:23 -07:00
no_inline on entry_point
This commit is contained in:
@@ -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
|
||||
|
||||
////////////////////////////////
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user