Blender V5.3
DNA_print.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2025 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <cstdint>
12#include <iosfwd>
13
14#include "DNA_sdna_type_ids.hh"
15
16namespace blender {
17
18struct SDNA;
19struct SDNA_Struct;
20
21namespace dna {
22
34void print_structs_at_address(const SDNA &sdna,
35 int struct_id,
36 const void *data,
37 const void *address,
38 int64_t element_num,
39 std::ostream &stream);
40
44void print_struct_by_id(int struct_id, const void *data);
45
46} // namespace dna
47
54#define DNA_print_struct(struct_name, data_ptr) \
55 dna::print_struct_by_id(dna::sdna_struct_id_get<struct_name>(), data_ptr)
56
57} // namespace blender
void print_struct_by_id(int struct_id, const void *data)
void print_structs_at_address(const SDNA &sdna, int struct_id, const void *data, const void *address, int64_t element_num, std::ostream &stream)
BMesh Iterators.
__int64 int64_t
Definition BKE_text.h:90
BMesh const char void * data