blob: 9816df309ea24ad9ac6563ebd1872666e82d0be8 (
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
26
|
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license 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__
|