7.9.8.98.OnFileLoaded()

在加载程序后调用 GEL 回调函数。

句法

OnFileLoaded( int nErrorCode, int bSymbolsOnly );

参数

nErrorCode: 0(零)表示成功。

bSymbolsOnlyBoolean 表示是否仅加载符号。

描述

如果在已加载的 GEL 文件中定义,则在加载程序后调用 OnFileLoaded()。

示例

OnFileLoaded(int nErrorCode, int bSymbolsOnly)
{
if (nErrorCode)
GEL_TextOut(“An error occurred while loading a file.-%d-n”,,,,, ErrorCode);
else
GEL_TextOut(“File was loaded successfully.-%d-n”,,,,, nErrorCode);
if (bSymbolsOnly)
GEL_TextOut(“Only symbols were loaded.n”);
else
GEL_TextOut(“Full load.n”);
}