Blender
V3.3
|
Go to the source code of this file.
Macros | |
#define | DNA_struct_default_get(struct_name) (const struct_name *)DNA_default_table[SDNA_TYPE_FROM_STRUCT(struct_name)] |
#define | DNA_struct_default_alloc(struct_name) |
Functions | |
uint8_t * | _DNA_struct_default_alloc_impl (const uint8_t *data_src, size_t size, const char *alloc_str) |
Variables | |
const void * | DNA_default_table [SDNA_TYPE_MAX] |
Definition in file DNA_defaults.h.
#define DNA_struct_default_alloc | ( | struct_name | ) |
Definition at line 32 of file DNA_defaults.h.
#define DNA_struct_default_get | ( | struct_name | ) | (const struct_name *)DNA_default_table[SDNA_TYPE_FROM_STRUCT(struct_name)] |
Wrap with macro that casts correctly.
Definition at line 29 of file DNA_defaults.h.
uint8_t* _DNA_struct_default_alloc_impl | ( | const uint8_t * | data_src, |
size_t | size, | ||
const char * | alloc_str | ||
) |
Definition at line 564 of file dna_defaults.c.
References MEM_mallocN, and size().
|
extern |
Keep headers sorted.
Definition at line 346 of file dna_defaults.c.
Referenced by RNA_def_property_boolean_sdna(), RNA_def_property_enum_sdna(), RNA_def_property_float_sdna(), RNA_def_property_int_sdna(), and RNA_def_property_string_sdna().