-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathWasmSection.h
36 lines (31 loc) · 978 Bytes
/
WasmSection.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
36
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#pragma once
#ifdef ENABLE_WASM
namespace Wasm
{
enum SectionFlag
{
fSectNone,
fSectIgnore,
};
#define WASM_SECTION(intName, id, flag, precendent) bSect ## intName,
enum SectionCode : uint8
{
#include "WasmSections.h"
bSectLimit,
bsectLastKnownSection = bSectData
};
struct SectionInfo
{
SectionInfo(SectionFlag, SectionCode, const char16*, const uint32);
SectionFlag flag;
SectionCode precedent;
const char16* name;
const uint32 nameLength;
static SectionInfo All[bSectLimit];
};
}
#endif