home *** CD-ROM | disk | FTP | other *** search
- /* --- EMSERROR.H --- */
-
- char *EMSerror[17] =
- {
- "Internal error in EMM.\n",
- "Malfunction in expanded-memory hardware.\n",
- "Expanded Memory Manager busy.\n",
- "Invalid EMS Handle.\n",
- "EMS function not defined.\n",
- "No more EMS handles available.\n",
- "Error in save or restore of mapping context.\n",
- "requested # of pages not in system.\n",
- "requested # of pages not available.\n",
- "Zero pages cannot be allocated.\n",
- "Logical page out of range for handle.\n",
- "Illegal physical page # !(0 <= pg <= 3).\n",
- "Page-mapping hardware state area full.\n",
- "save of mapping context failed.\n",
- "Restore of mapping context failed.\n",
- "Subfunction parameter not defined.\n",
- "Expanded Memory Manager not present.\n"
- };
-
- /*
- emserror(err) is a macro designed to help in debugging and reporting
- errors in programs using expanded memory. DO NOT call this macro with
- err == NOERR (0) or anything less than 0x80.
- */
-
- #define emserror(err) ( ((err - 0x80) <= 16) ? puts(EMSerror[err - 0x80]) : puts("Unexpected Error!/nConsult LIM Secification Document."))
-
-