sgs_Errno [function alias]
int sgs_Errno( sgs_Context* C, int clear )
Copies errno to internal errno value if clear
is not 0, otherwise internal errno value is set to 0, returns clear
.
- Used with a boolean expression and chaining to set errno if the expression returned false, like this:
sgs_PushBool( C, sgs_Errno( C, rename( a, b ) == 0 ) )