home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / flipsrc.sit / ierror.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-12  |  470 b   |  22 lines

  1. /* ierror.c
  2.  * ⌐ 1992 - Michael S. Engber - All Rights Reserved
  3.  */
  4.  
  5. #include "AppleEvents.h"
  6. #include "ierror.h"
  7. #define I_ERROR_ALERT_ID 666
  8.  
  9. OSErr IError(OSErr eCode,unsigned char* p1,unsigned char* p2,unsigned char* p3){
  10.     Str255 p0;
  11.  
  12.     if(AEInteractWithUser(kAEDefaultTimeout,NULL,NULL)){
  13.         SysBeep(0L);
  14.         return eCode;
  15.     }
  16.     
  17.     NumToString((long)eCode,p0);
  18.     ParamText(p0, p1 ? p1 : "\p", p2 ? p2 : "\p", p3 ? p3 :"\p");
  19.     Alert(I_ERROR_ALERT_ID,NULL);
  20.     
  21.     return eCode;
  22. }