en:docs:som:api:kernel:somerror

This is an old revision of the document!


This is part of Family API which allow to create dual-os version of program runs under OS/2 and DOS

Note: This is legacy API call. It is recommended to use 32-bit equivalent

2021/09/17 04:47 · prokushev · 0 Comments
2021/08/20 03:18 · prokushev · 0 Comments

SOMError

This call generates error message and terminates process if fatal error.

Syntax

void (*SOMError) (int errorCode, string fileName, int lineNum);

Parameters

  • errorCode (USHORT) - input : Error code.
  • fileName (USHORT) - input : Name of source file where error was occurred.
  • lineNum (USHORT) - input : Line of source file where error occurred.

Return Code

None

Notes

SOMError is a global variable and can be replaced by user function

Example Code

#include <som.h>
 
SOMError(SOM_Fatal(12), __FILE__, __LINE__);

Note