This is macro_help.h in view mode; [Download] [Up]
/* * 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 #define NEVER FALSE #define ALWAYS TRUE #endif #ifndef MACRO_BEGIN # define MACRO_BEGIN do { #endif #ifndef MACRO_END #define MACRO_END } while (NEVER) #endif #ifndef MACRO_RETURN #define MACRO_RETURN if (ALWAYS) return #endif #endif
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.