Gentee Programming Language > Documentation > Launch Download documentation

messagefunc

You should define a function of the following type, if you want to manually handle and lead the messages of the compiler and execution period core.

int (CALLBACK* messagefunc)( smess*)

The next structure’s pointer is used as a parameter, while the function itself should return “0.”
 
type smess {
      DWORD   code
      LPSTR   text
      LPCSTR   filename
      DWORD   line
      DWORD   pos
      DWORD   iscompile
}

Fields

codeError code or message code.
textMessage text.
filenameName of the file, in which the error occurred.
lineNumber of the line, in which the error occurred.
posPosition in the line, in which the error was detected.
iscompileIf “1,” than it is compiler’s error. If “0,” it is a run-time error.

See also

    Gentee API functions     ge_init    Error codes and message codes


 Copyright © 2004-2006 Gentee Inc. All rights reserved.