-
Notifications
You must be signed in to change notification settings - Fork 716
/
Copy pathstdafx.h
35 lines (29 loc) · 943 Bytes
/
stdafx.h
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
27
28
29
30
31
32
33
34
35
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#ifdef _MSC_VER
#include "seal/c/targetver.h"
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
// Windows Header Files
#include <CorError.h>
#include <Windows.h>
#endif // _MSC_VER
#define IfNullRet(expr, ret) \
{ \
if ((expr) == nullptr) \
{ \
return ret; \
} \
}
#define IfFailRet(expr) \
{ \
HRESULT __hr__ = (expr); \
if (FAILED(__hr__)) \
{ \
return __hr__; \
} \
}