lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi all,

As a C programmer, I am a little confused whether need to check the return values of Lua C APIs.  

For example, I know if "lua_pcall" returns non-zero value, it means failed. But as other non-void return 
value functions, such as "lua_getglobal", doesn't it need to check the return value?

I try to refer the manual, But the manual doesn't seem to give answers about whether need to check 
the return values of APIs.

Thanks!

Best Regards
Nan Xiao