home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.2 (Developer)
/
NS_dev_3.2.iso
/
NextDeveloper
/
Headers
/
kernserv
/
macro_help.h
< prev
next >
Wrap
Text File
|
1993-10-19
|
1KB
|
65 lines
/*
* Mach Operating System
* Copyright (c) 1989 Carnegie-Mellon University
* Copyright (c) 1988 Carnegie-Mellon University
* All rights reserved. The CMU software License Agreement specifies
* the terms and conditions for use and redistribution.
*/
/*
* HISTORY
* $Log: macro_help.h,v $
* Revision 2.4 89/03/09 20:14:07 rpd
* More cleanup.
*
* Revision 2.3 89/02/25 18:06:34 gm0w
* Kernel code cleanup.
* Put entire file under #indef KERNEL.
* [89/02/15 mrt]
*
* Revision 2.2 88/10/18 03:36:20 mwyoung
* Added a form of return that can be used within macros that
* does not result in "statement not reached" noise.
* [88/10/17 mwyoung]
*
* Add MACRO_BEGIN, MACRO_END.
* [88/10/11 mwyoung]
*
* Created.
* [88/10/08 mwyoung]
*
*/
/*
* File: kernserv/macro_help.h
*
* Provide help in making lint-free macro routines
*
*/
#ifndef _KERN_MACRO_HELP_H_
#define _KERN_MACRO_HELP_H_
#import <mach/boolean.h>
#ifdef lint
boolean_t NEVER;
boolean_t ALWAYS;
#else lint
#define NEVER FALSE
#define ALWAYS TRUE
#endif lint
#ifndef MACRO_BEGIN
# define MACRO_BEGIN do {
#endif MACRO_BEGIN
#ifndef MACRO_END
#define MACRO_END } while (NEVER)
#endif MACRO_END
#ifndef MACRO_RETURN
#define MACRO_RETURN if (ALWAYS) return
#endif MACRO_RETURN
#endif _KERN_MACRO_HELP_H_