home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 July / macformat-026.iso / mac / Shareware City / Developers / NString 1.0 beta / Sources / NString_Misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-07  |  402 b   |  16 lines  |  [TEXT/KAHL]

  1.  
  2. #ifndef _NSTRING_MISC_H_
  3. #define _NSTRING_MISC_H_
  4.  
  5. #include "NString.h"
  6.  
  7. #ifdef USE_EXCEPTIONS
  8.     #define OUT_OF_MEM(f) throw NString::OutOfMemory(__LINE__, __FILE__, f)
  9.     #define USAGE_ERR(f, s) throw NString::UsageError(__LINE__, __FILE__, f, s)
  10. #else
  11.     #define OUT_OF_MEM(f) NString::Out_of_Memory(__LINE__, __FILE__, f)
  12.     #define USAGE_ERR(f, s) NString::panic(__LINE__, __FILE__, f, s)
  13. #endif
  14.  
  15. #endif
  16.