[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can lua_next() error?
- From: 云风 <cloudwu@...>
- Date: Wed, 18 Apr 2018 03:38:05 +0800
> 在 2018年4月18日，上午2:04，Viacheslav Usov <email@example.com> 写道：
> input will result in THAT kind of UB; for example, I expected a Lua error to be raised by lua_next() when given a non-table input (why? perhaps because it had the 'e" error category?). So even though it feels like stating the obvious, it helps.
You can turn on LUA_USE_APICHECK to do more checks on the C API .