📄 logger.h
字号:
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (c) 2000 Microsoft Corporation
Module Name: logger.h
Abstract:
Notes:
History:
coscor 7/3/2000 Created.
--*/
//Warning! This pragma is specific to Visual C++!
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef LOGGER_H
#define LOGGER_H
#define DUMP_EVENT_NAME TEXT("LogDumpEvent")
#define RECORD_EVENT_NAME TEXT("LogRecordEvent")
#ifdef __cplusplus
extern "C"
{
#endif
#ifdef DO_LOG
void DumpLog(); // dumps logged info
//void DumpRecord();
void StartRecording();
void StopRecording();
void InitializeLog();
void Log(TCHAR c, DWORD dw1, DWORD dw2);
void Record(/* [in] */ void *pAudio1,
/* [in] */ DWORD dwAudioBytes1,
/* [in] */ void *pAudio2,
/* [in] */ DWORD dwAudioBytes2);
#else
#define DumpLog() 0
//#define DumpRecord() 0
#define StartRecording() 0
#define StopRecording() 0
#define InitializeLog() 0
#define Log(c, dw1, dw2) 0
#define Record(a, b, c, d) 0
#endif // DO_LOG
#ifdef __cplusplus
}
#endif
#define LOG(x, y, z) Log(TEXT(x), y, z)
#endif // LOGGER_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -