diff options
Diffstat (limited to 'src/jit/host.h')
-rw-r--r-- | src/jit/host.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/jit/host.h b/src/jit/host.h index d38d41bdc7..87e13d4180 100644 --- a/src/jit/host.h +++ b/src/jit/host.h @@ -18,10 +18,13 @@ class LogEnv { public: LogEnv(ICorJitInfo* aCompHnd); - void setCompiler(Compiler* val) { const_cast<Compiler*&>(compiler) = val; } + void setCompiler(Compiler* val) + { + const_cast<Compiler*&>(compiler) = val; + } ICorJitInfo* const compHnd; - Compiler* const compiler; + Compiler* const compiler; }; BOOL vlogf(unsigned level, const char* fmt, va_list args); @@ -33,16 +36,15 @@ void gcDump_logf(const char* fmt, ...); void logf(unsigned level, const char* fmt, ...); -extern "C" -void __cdecl assertAbort(const char *why, const char *file, unsigned line); +extern "C" void __cdecl assertAbort(const char* why, const char* file, unsigned line); -#undef assert -#define assert(p) (void)((p) || (assertAbort(#p, __FILE__, __LINE__),0)) +#undef assert +#define assert(p) (void)((p) || (assertAbort(#p, __FILE__, __LINE__), 0)) #else // DEBUG -#undef assert -#define assert(p) (void) 0 +#undef assert +#define assert(p) (void)0 #endif // DEBUG /*****************************************************************************/ @@ -50,11 +52,14 @@ void __cdecl assertAbort(const char *why, const char *file, unsigned line #define _HOST_H_ /*****************************************************************************/ -const size_t OS_page_size = (4*1024); +const size_t OS_page_size = (4 * 1024); extern FILE* jitstdout; -inline FILE* procstdout() { return stdout; } +inline FILE* procstdout() +{ + return stdout; +} #undef stdout #define stdout use_jitstdout |