-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathglobals.cpp
20 lines (18 loc) · 910 Bytes
/
globals.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#include "ParserPch.h"
// strings for builtin names
#define HASH_NAME(name, hashCS, hashCI) \
const StaticSymLen<sizeof(#name)> g_ssym_##name = \
{ \
hashCS, \
sizeof(#name) - 1, \
_u(#name) \
}; \
C_ASSERT(offsetof(StaticSymLen<sizeof(#name)>, luHash) == offsetof(StaticSym, luHash)); \
C_ASSERT(offsetof(StaticSymLen<sizeof(#name)>, cch) == offsetof(StaticSym, cch)); \
C_ASSERT(offsetof(StaticSymLen<sizeof(#name)>, sz) == offsetof(StaticSym, sz)); \
#include "objnames.h"
#undef HASH_NAME