home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK2.toast / What's New / Sample Code / Networking / MoreNetworkSetup / MoreSetup.h next >
Encoding:
C/C++ Source or Header  |  1998-11-10  |  1.6 KB  |  49 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        MoreSetup.h
  3.  
  4.     Contains:    Sets up conditions etc for MoreIsBetter.
  5.  
  6.     Written by:    Pete Gontier (PCG)
  7.  
  8.     Copyright:    Copyright © 1998 by Apple Computer, Inc., all rights reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.  
  20.          <2>    10/11/98    Quinn   Convert "MorePrefix.h" to "MoreSetup.h".
  21.          <1>    10/11/98    Quinn   Changed name from "MorePrefix.h" to "MoreSetup.h".
  22.          <3>     5/11/98    Quinn   Use MoreAssertQ instead of MoreAssert.
  23.          <2>     7/24/98    PCG        rid of triplet #includes
  24.          <2>     6/23/98    PCG     add copyright disclaimer stuff
  25.          <1>     6/23/98    PCG     initial checkin
  26. */
  27.  
  28. #pragma once
  29.  
  30. #define OLDROUTINELOCATIONS        0
  31. #define OLDROUTINENAMES            0
  32. #define SystemSevenOrLater        1
  33.  
  34. #include <Errors.h>
  35.  
  36. #ifndef MORE_DEBUG
  37. #    define MORE_DEBUG 1
  38. #endif
  39.  
  40. #if MORE_DEBUG
  41. #    define MoreAssert(x) \
  42.         ((x) ? true : (DebugStr ("\pMoreAssert failure: " #x), false))
  43. #    define MoreAssertQ(x) \
  44.         do { if (!(x)) DebugStr ("\pMoreAssertQ failure: " #x); } while (false)
  45. #else
  46. #    define MoreAssert(x) (true)
  47. #    define MoreAssertQ(x)
  48. #endif
  49.