|
Porytiles
|
Represents a parsed INCBIN array declaration from C source code. More...
#include <incbin_declaration.hpp>
Public Member Functions | |
| IncbinDeclaration (std::string variable_name, std::string macro_name, std::string path, SourcePosition position) | |
| Constructs an IncbinDeclaration with a single path. | |
| IncbinDeclaration (std::string variable_name, std::string macro_name, std::vector< std::string > paths, SourcePosition position) | |
| Constructs an IncbinDeclaration with multiple paths. | |
| const std::string & | variable_name () const |
| Returns the variable name. | |
| const std::string & | macro_name () const |
| Returns the INCBIN macro name. | |
| const std::vector< std::string > & | paths () const |
| Returns all paths from the INCBIN macro(s). | |
| const SourcePosition & | position () const |
| Returns the source position of the variable name. | |
| bool | is_multi_path () const |
| Checks if this declaration has multiple paths. | |
Represents a parsed INCBIN array declaration from C source code.
IncbinDeclaration captures array declarations that use INCBIN macros to include binary data:
Definition at line 32 of file incbin_declaration.hpp.
|
inline |
Constructs an IncbinDeclaration with a single path.
| variable_name | The variable name (e.g., "gTilesetTiles_General") |
| macro_name | The INCBIN macro name (e.g., "INCBIN_U32") |
| path | The path inside the INCBIN macro |
| position | The source position of the variable name |
Definition at line 42 of file incbin_declaration.hpp.
|
inline |
Constructs an IncbinDeclaration with multiple paths.
Used for multi-dimensional arrays like palette declarations where multiple INCBIN calls are used in a single initializer.
| variable_name | The variable name (e.g., "gTilesetPalettes_General") |
| macro_name | The INCBIN macro name (e.g., "INCBIN_U16") |
| paths | The paths from each INCBIN macro call |
| position | The source position of the variable name |
Definition at line 60 of file incbin_declaration.hpp.
|
inline |
Checks if this declaration has multiple paths.
Definition at line 112 of file incbin_declaration.hpp.
|
inline |
Returns the INCBIN macro name.
Definition at line 82 of file incbin_declaration.hpp.
|
inline |
Returns all paths from the INCBIN macro(s).
Definition at line 92 of file incbin_declaration.hpp.
|
inline |
Returns the source position of the variable name.
Definition at line 102 of file incbin_declaration.hpp.
|
inline |
Returns the variable name.
Definition at line 72 of file incbin_declaration.hpp.