Blender  V2.93
DNA_defs.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 
23 #pragma once
24 
25 /* makesdna ignores */
26 #ifdef DNA_DEPRECATED_ALLOW
27 /* allow use of deprecated items */
28 # define DNA_DEPRECATED
29 #else
30 # ifndef DNA_DEPRECATED
31 # ifdef __GNUC__
32 # define DNA_DEPRECATED __attribute__((deprecated))
33 # else
34 /* TODO, msvc & others */
35 # define DNA_DEPRECATED
36 # endif
37 # endif
38 #endif
39 
40 #ifdef __GNUC__
41 # define DNA_PRIVATE_ATTR __attribute__((deprecated))
42 #else
43 # define DNA_PRIVATE_ATTR
44 #endif
45 
46 /* poison pragma */
47 #ifdef DNA_DEPRECATED_ALLOW
48 # define DNA_DEPRECATED_GCC_POISON 0
49 #else
50 /* enable the pragma if we can */
51 # ifdef __GNUC__
52 # define DNA_DEPRECATED_GCC_POISON 1
53 # else
54 # define DNA_DEPRECATED_GCC_POISON 0
55 # endif
56 #endif
57 
58 /* hrmf, we need a better include then this */
59 #include "../blenlib/BLI_sys_types.h" /* needed for int64_t only! */
60 
61 /* non-id name variables should use this length */
62 #define MAX_NAME 64