1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 /*****************************************************************************/
20 LogEnv(ICorJitInfo* aCompHnd);
21 void setCompiler(Compiler* val)
23 const_cast<Compiler*&>(compiler) = val;
26 ICorJitInfo* const compHnd;
27 Compiler* const compiler;
30 BOOL vlogf(unsigned level, const char* fmt, va_list args);
31 int vflogf(FILE* file, const char* fmt, va_list args);
33 int logf(const char* fmt, ...);
34 int flogf(FILE* file, const char* fmt, ...);
35 void gcDump_logf(const char* fmt, ...);
37 void logf(unsigned level, const char* fmt, ...);
39 extern "C" void __cdecl assertAbort(const char* why, const char* file, unsigned line);
42 #define assert(p) (void)((p) || (assertAbort(#p, __FILE__, __LINE__), 0))
47 #define assert(p) (void)0
50 /*****************************************************************************/
53 /*****************************************************************************/
55 const size_t OS_page_size = (4 * 1024);
57 extern FILE* jitstdout;
59 inline FILE* procstdout()
64 #define stdout use_jitstdout
66 /*****************************************************************************/
68 /*****************************************************************************/