int error = hw_GetVMErrorInfo(lua_State *L, struct hwGVMErrorInfo *vme,
struct hwTagList *tags);
lua_pcall() exited with an error code, i.e. lua_pcall() returned anything
except 0. You have to pass the lua_State pointer and a pointer to a struct hwGVMErrorInfo
to this function. hw_GetVMErrorInfo() will then fill the struct hwGVMErrorInfo
with extended error information. struct hwGVMErrorInfo looks like this:
struct hwGVMErrorInfo
{
int Line;
STRPTR Function;
STRPTR File;
};
|
hw_GetVMErrorInfo() will write the following information to the structure pointer
passed to it:
Line:
Function:
File:
Note that you should call hw_GetVMErrorInfo() right after lua_pcall() has returned
with an error code. Otherwise there is no guarantee that the returned information
is still valid.
lua_Statestruct hwGVMErrorInfo to be filled by the functionNULL for the time being