PDA

View Full Version : Lua error code ?



Ron
October 13th, 2002, 12:55 PM
Darn I'm trying to figure out how to get the line in Lua where an error occured, the docs are a little thin on this point. Anyone out there have any experience with Lua ? guess I should post this in the correct forum :-)

Ron
October 13th, 2002, 12:55 PM
Never mind, found it.

Ron
October 13th, 2002, 12:55 PM
Will do sir!

Ron
October 13th, 2002, 12:55 PM
GVMS doesn't return GIR_TRUE or GIR_FALSE, it returns -1 on error and something else depending on the function, this is because sometimes we need to return 0 for the length of a string,... and that would not be an error. (GIR_FALSE=0) Updated the API docs on this point.

Mark F
October 13th, 2002, 12:55 PM
While you are in there looking at the code ... ;)

I think the return code from get_string_var() is backward between GVMS(GIR_FALSE) and LUA(GIR_TRUE). Could you check to make sure all the plugin interfaces return the same return codes for PASS and FAIL when using LUA or GVMS?

Thanks. :D