mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 13:28:40 +00:00
no_inline on entry_point
This commit is contained in:
@@ -45,12 +45,24 @@
|
|||||||
# define thread_static __declspec(thread)
|
# define thread_static __declspec(thread)
|
||||||
#elif COMPILER_CLANG || COMPILER_GCC
|
#elif COMPILER_CLANG || COMPILER_GCC
|
||||||
# define thread_static __thread
|
# define thread_static __thread
|
||||||
|
#else
|
||||||
|
# error thread_static not defined for this compiler.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if COMPILER_MSVC
|
#if COMPILER_MSVC
|
||||||
# define force_inline __forceinline
|
# define force_inline __forceinline
|
||||||
#elif COMPILER_CLANG || COMPILER_GCC
|
#elif COMPILER_CLANG || COMPILER_GCC
|
||||||
# define force_inline __attribute__((always_inline))
|
# 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
|
#endif
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ internal Guid os_make_guid(void);
|
|||||||
|
|
||||||
#if BUILD_ENTRY_DEFINING_UNIT
|
#if BUILD_ENTRY_DEFINING_UNIT
|
||||||
raddbg_entry_point(entry_point);
|
raddbg_entry_point(entry_point);
|
||||||
internal void entry_point(CmdLine *cmdline);
|
internal no_inline void entry_point(CmdLine *cmdline);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // OS_CORE_H
|
#endif // OS_CORE_H
|
||||||
|
|||||||
Reference in New Issue
Block a user