lua-users home
lua-l archive

Re: lua.c and OS error codes

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


On 6/14/07, eugeny gladkih <john@gladkih.com> wrote:
>>>>> "LHdF" == Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> writes:
 >> A 'return 1453' in a Lua main chunk doesn't set the error code that's
 LHdF> I think error codes are restricted to 0-255. This is not
 LHdF> your point, but it's good to keep in mind.
Windows supports full 32bit process exit codes.
Windows apparently supports exit codes from 0 to 4294967295 and POSIX
supports exit codes from 0 to 255, but C only supports two exit codes:
EXIT_SUCCESS==0 and EXIT_FAILURE, which is a non-zero but otherwise
unspecified value.
 -Mark

AltStyle によって変換されたページ (->オリジナル) /