Debian Codegraph @

lib/Macros.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17
18 --- HISTORICAL COMMENTS FOLLOW ---
19
20 * $Logfile: /DescentIII/Main/Lib/Macros.h $
21 * $Revision: 11 $
22 * $Date: 10/21/99 9:28p $
23 * $Author: Jeff $
24 *
25 * Macros.
26 *
27 * $Log: /DescentIII/Main/Lib/Macros.h $
28 *
29 * 11 10/21/99 9:28p Jeff
30 * B.A. Macintosh code merge
31 *
32 * 10 7/28/99 5:18p Kevin
33 * Mac merge fixes
34 *
35 * 9 7/28/99 3:17p Kevin
36 * Mac Changes
37 *
38 * 8 12/16/98 1:57p Samir
39 * Replaced CleanupString2 with CleanupStr
40 *
41 * 7 12/02/98 11:44a Samir
42 * added CHECK_FLAG macro
43 *
44 * 6 8/10/98 5:53p Samir
45 * macro to convert KB to bytes.
46 *
47 * 5 7/14/98 11:52a Samir
48 * added cleanup string 'macro'.
49 *
50 * 4 5/15/98 3:13p Samir
51 * added some uint16_t/byte macros.
52 *
53 * 3 3/31/98 7:48p Samir
54 * fixed horrible makeword macro bug.
55 *
56 * 2 12/03/97 7:37p Samir
57 * Added makeword, hiword and loword macros.
58 *
59 * $NoKeywords: $
60 */
61 #ifndef _MACROS_H
62 #define _MACROS_H
63 #define CHECK_FLAG(_var, _flag) ((_var) & (_flag))
64 #endif