Porytiles
Loading...
Searching...
No Matches
porytiles::IndexedArrayDeclaration Struct Reference

A parsed C array declaration that uses designated initializers. More...

#include <indexed_array_declaration.hpp>

Collaboration diagram for porytiles::IndexedArrayDeclaration:
[legend]

Public Attributes

std::string name
 
std::vector< IndexedArrayEntryentries
 
SourcePosition position
 

Detailed Description

A parsed C array declaration that uses designated initializers.

Captures declarations of the form:

static const u32 sMetatileAttrMasks[METATILE_ATTRIBUTE_COUNT] = {
[METATILE_ATTRIBUTE_BEHAVIOR] = 0x000001ff,
[METATILE_ATTRIBUTE_TERRAIN] = 0x00003e00,
...
};

The array's size expression is skipped; only the name and the designated entries are retained.

Definition at line 41 of file indexed_array_declaration.hpp.

Member Data Documentation

◆ entries

std::vector<IndexedArrayEntry> porytiles::IndexedArrayDeclaration::entries

Definition at line 43 of file indexed_array_declaration.hpp.

◆ name

std::string porytiles::IndexedArrayDeclaration::name

Definition at line 42 of file indexed_array_declaration.hpp.

◆ position

SourcePosition porytiles::IndexedArrayDeclaration::position

Definition at line 44 of file indexed_array_declaration.hpp.


The documentation for this struct was generated from the following file: