📄 my_def.h
字号:
// =====[my_def.h]=========================================================================
// Description: Header file (my_def.h)
// Compiled: MS-VC++
// Version: .NET
// Revisions:
// REV DATE BY DESCRIPTION
// ------ -------------- ---------- --------------------------------------
// 1.01 2001/01/01 BDS Initial version.
//
// This header file (my_def.h) is Copyright(c) 2001 Dmitry Basko.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that:
// 1. source code distributions retain the above copyright notice and this
// paragraph in its entirety;
// 2. distributions including binary code include the above copyright notice
// and this paragraph in its entirety in the documentation or other materials
// provided with the distribution;
// 3. all advertising materials mentioning features or use of this software
// display the following acknowledgement;
// "This product includes software developed by Dmitry Basko."
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// =========================================================================================
#pragma once
#ifndef MY_DEF_H
#define MY_DEF_H
#include "crtdbg.h"
#if defined(_WIN32) && defined(_M_IX86)
#ifndef VAS_VERIFY
#if defined(_WIN32) && defined(_M_IX86)
#ifdef _DEBUG
#define VAS_VERIFY(expr) _ASSERTE(expr)
#else
#define VAS_VERIFY(expr) (expr)
#endif // DEBUG
#endif //_WIN32
#else
#define VAS_VERIFY(expr) (expr)
#endif// VAS_VERIFY
#ifndef VASSERT
#if defined(_WIN32) && defined(_M_IX86)
#ifdef _DEBUG
#define VASSERT(expr) _ASSERTE(expr)
#else
#define VASSERT(expr)
#endif // DEBUG
#endif //_WIN32
#else
#define VASSERT(expr)
#endif// VAS_VERIFY
#ifndef DBG_PRINT
#if defined(_WIN32) && defined(_M_IX86)
#ifdef _LOG_FILE
#define DBG_PRINT(expr) DbgPrint expr
#else
#define DBG_PRINT(expr)
#endif // DEBUG
#endif //_WIN32
#else
#define DBG_PRINT(expr)
#endif// AS_VERIFY
#ifdef _CRT_DEBUG
#ifdef _DEBUG
#define SET_CRT_DEBUG_FIELD(a) \
_CrtSetDbgFlag((a) | _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG))
#define CLEAR_CRT_DEBUG_FIELD(a) \
_CrtSetDbgFlag(~(a) & _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG))
#else
#define SET_CRT_DEBUG_FIELD(a) ((void) 0)
#define CLEAR_CRT_DEBUG_FIELD(a) ((void) 0)
#endif
#define _CRTDBG_MAP_ALLOC
#endif
#else
#error Modification required for this type of OS
#endif
#endif //MY_DEF_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -