|
Blender V5.3
|
Parser for DNA header files used by makesdna. More...
#include "dna_parse.h"#include <cctype>#include <cstdio>#include <cstring>#include <fstream>#include "BLI_map.hh"#include "BLI_math_matrix_types.hh"#include "BLI_math_vector_types.hh"#include "BLI_string_ref.hh"#include "BLI_utildefines.hh"#include "dna_utils.h"#include "dna_includes_as_strings.h"Go to the source code of this file.
Classes | |
| struct | blender::dna::Token |
| class | blender::dna::TokenStream |
| struct | blender::dna::CppVectorMatrixTypeMap |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
| namespace | blender::dna |
Macros | |
| #define | DEBUG_PRINTF(debug_level, ...) |
Variables | |
Debugging | |
| int | blender::debugSDNA = 0 |
Token Stream | |
| using | blender::dna::TokenKind = int |
| constexpr TokenKind | blender::dna::TOKEN_IDENTIFIER = 256 |
| constexpr TokenKind | blender::dna::TOKEN_NUMBER = 257 |
| constexpr TokenKind | blender::dna::TOKEN_END = 258 |
Type Substitution | |
| static const CppVectorMatrixTypeMap | blender::dna::cpp_array_type_mappings [] |
| static void | blender::dna::substitute_listbase_t (ParsedMember &member) |
| static void | blender::dna::substitute_vector_or_matrix (ParsedMember &member) |
| static bool | blender::dna::substitute_enum (const ParsedStruct &parsed_struct, ParsedMember &member, const Map< StringRef, const ParsedEnum * > &enum_map) |
| static void | blender::dna::substitute_sdna_integer_type (ParsedMember &member) |
| bool | blender::dna::substitute_cpp_types (Vector< ParsedStruct > &structs, const Span< ParsedEnum > enums, bool) |
Parser for DNA header files used by makesdna.
The parser understands a basic subset of C/C++ needed for parsing structs and their members. Code surrounded by #ifdef __cplusplus is skipped to avoid having to parse more advanced C++.
Definition in file dna_parse.cc.
| #define DEBUG_PRINTF | ( | debug_level, | |
| ... ) |
Definition at line 37 of file dna_parse.cc.
Referenced by blender::make_structDNA(), blender::dna::parse_dna_header(), and blender::dna::parse_struct_body().