home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / memory / emslib / emserror.h < prev    next >
Encoding:
Text File  |  1988-04-25  |  1.1 KB  |  32 lines

  1. /* --- EMSERROR.H --- */
  2.  
  3. char *EMSerror[17] =
  4. {
  5.    "Internal error in EMM.\n",
  6.    "Malfunction in expanded-memory hardware.\n",
  7.    "Expanded Memory Manager busy.\n",
  8.    "Invalid EMS Handle.\n",
  9.    "EMS function not defined.\n",
  10.    "No more EMS handles available.\n",
  11.    "Error in save or restore of mapping context.\n",
  12.    "requested # of pages not in system.\n",
  13.    "requested # of pages not available.\n",
  14.    "Zero pages cannot be allocated.\n",
  15.    "Logical page out of range for handle.\n",
  16.    "Illegal physical page # !(0 <= pg <= 3).\n",
  17.    "Page-mapping hardware state area full.\n",
  18.    "save of mapping context failed.\n",
  19.    "Restore of mapping context failed.\n",
  20.    "Subfunction parameter not defined.\n",
  21.    "Expanded Memory Manager not present.\n"
  22. };
  23.  
  24. /*
  25.        emserror(err) is a macro designed to help in debugging and reporting
  26.        errors in programs using expanded memory. DO NOT call this macro with
  27.        err == NOERR (0) or anything less than 0x80.
  28. */
  29.  
  30. #define emserror(err) ( ((err - 0x80) <= 16) ? puts(EMSerror[err - 0x80]) : puts("Unexpected Error!/nConsult LIM Secification Document."))
  31.  
  32.