home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Sample Code / Movie Toolbox / Inside Mac Movie Toolbox Code / mtb0.c < prev    next >
Encoding:
Text File  |  1994-12-05  |  491 b   |  28 lines  |  [TEXT/MPS ]

  1. /*
  2.   File:            mtb0.c
  3.   Contains:        Error Checking
  4.   Written by:    DTS and QT Engineering
  5.   Copyright:    © 1992-1994 by Apple Computer, Inc., all rights reserved.
  6.   Change History (most recent first):
  7.   <1>         12/4/94    khs        changed the format of the file to the new look and feel
  8.   To Do:
  9. */
  10.  
  11.  
  12. // INCLUDES
  13. #include "mtb.h"
  14.  
  15.  
  16. // FUNCTIONS
  17. void CheckError(OSErr error,
  18.                 Str255 displayString)
  19. {
  20.     if (error == noErr)
  21.         return;
  22.     if (displayString[0] > 0)
  23.         DebugStr(displayString);
  24.     ExitToShell();
  25. }
  26.  
  27.  
  28.