FreeBSD/Linux Kernel Cross Reference
sys/sys/macro_help.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1988 Carnegie-Mellon University
4 * All rights reserved. The CMU software License Agreement specifies
5 * the terms and conditions for use and redistribution.
6 */
7 /*
8 * File: kern/macro_help.h
9 *
10 * Provide help in making lint-free macro routines
11 *
12 * HISTORY
13 * $Log: macro_help.h,v $
14 * Revision 2.3 93/03/09 11:25:27 danner
15 * Simplified.
16 * [93/03/09 danner]
17 *
18 * Revision 2.2 93/02/04 07:51:01 danner
19 * Cast down from UX.
20 *
21 * Revision 2.1.2.1 92/12/18 16:46:34 pds
22 * Check if MACRO_BEGIN has already been defined (by cthreads.h).
23 * [92/06/13 pds]
24 *
25 * Revision 2.1 89/08/04 14:46:36 rwd
26 * Created.
27 *
28 * Revision 2.2 88/10/18 03:36:20 mwyoung
29 * Added a form of return that can be used within macros that
30 * does not result in "statement not reached" noise.
31 * [88/10/17 mwyoung]
32 *
33 * Add MACRO_BEGIN, MACRO_END.
34 * [88/10/11 mwyoung]
35 *
36 * Created.
37 * [88/10/08 mwyoung]
38 *
39 */
40
41 #ifndef _MACRO_HELP_H_
42 #define _MACRO_HELP_H_ 1
43
44 #define MACRO_BEGIN do {
45 #define MACRO_END } while (0)
46
47 #define MACRO_RETURN if (1) return
48
49 #endif /* _MACRO_HELP_H_ */
50
51
Cache object: fdb06bae41ad77c9d7c05ef1f2e72820
|