Ermn

Error reporting function

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction Ermn ( ) KeyPgAsAs KeyPgZstringZString KeyPgPtrPtr

Usage
	result = Ermn ( ) 

Return Value
	Returns a pointer to the string identifying the module where the error 
	occurred.

	Returns NULL if the source is not compiled with the CompilerOptexx-exx compiler 
	option.

Description
	An error reporting function returning a pointer to the name of the 
	module.

Example
	'' test.bas
	'' compile with fbc -exx -lang fblite test.bas

	#lang "fblite"

	Sub Generate_Error
	  On Error Goto Handler
	  Error 1000
	  Exit Sub
	Handler:
	  Print "Error Function: "; *Erfn()
	  Print "Error Module  : "; *Ermn()
	  Resume Next
	End Sub

	Generate_Error

Output:
	Error Function: GENERATE_ERROR
	Error Module  : test.bas

Dialect Differences
	* Not available in the CompilerOptlang-lang qb dialect unless referenced with the 
	  alias __Ermn.

Differences from QB
	* New to FreeBASIC

See also 
	* KeyPgErfnErfn
	* KeyPgErlErl
	* KeyPgOnerrorOn...Error

