mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-15 18:50:20 -08:00
no_inline on entry_point
This commit is contained in:
1 parent
366c63e3ce
commit
d1845bf51f
2 files changed
+13
-1
No files matched your search
@@ -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