Blender
V2.93
source
blender
makesdna
DNA_session_uuid_types.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*/
16
21
#pragma once
22
23
#include "
BLI_sys_types.h
"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
29
/* Is a structure because of the following considerations:
30
*
31
* - It is not possible to use custom types in DNA members: makesdna does not recognize them.
32
* - It allows to add more bits, more than standard fixed-size types can store. For example, if
33
* we ever need to go 128 bits, it is as simple as adding extra 64bit field.
34
*/
35
typedef
struct
SessionUUID
{
36
/* Never access directly, as it might cause a headache when more bits are needed: if the field
37
* is used directly it will not be easy to find all places where partial access is used. */
38
uint64_t
uuid_
;
39
}
SessionUUID
;
40
41
#ifdef __cplusplus
42
}
43
#endif
BLI_sys_types.h
SessionUUID
struct SessionUUID SessionUUID
uint64_t
unsigned __int64 uint64_t
Definition:
stdint.h:93
SessionUUID
Definition:
DNA_session_uuid_types.h:35
SessionUUID::uuid_
uint64_t uuid_
Definition:
DNA_session_uuid_types.h:38
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1