summaryrefslogtreecommitdiff
path: root/src/md/inc/mdlog.h
blob: 7eb792f9cc284aac0c14d32431bf5154d30ffb44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//*****************************************************************************
// MDLog.h - Meta data logging helper.
// 

//
//*****************************************************************************
#ifndef __MDLog_h__
#define __MDLog_h__

#if defined(_DEBUG) && !defined(DACCESS_COMPILE)
#define LOGGING
#endif

#include <log.h>

#define LOGMD LF_METADATA, LL_INFO10000
#define LOG_MDCALL(func) LOG((LF_METADATA, LL_INFO10000, "MD: %s\n", #func))

#define MDSTR(str) ((str) ? str : W("<null>"))
#define MDSTRA(str) ((str) ? str : "<null>")

#endif // __MDLog_h__