lua_isfalse
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: lua_isfalse
- From: Gaspard Bucher <gaspard@...>
- Date: 2011年8月28日 20:38:15 +0200
Hi list,
What is the simplest way to check a return value for false, doing the equivalent of the Lua code:
val == false
but with the C API...
My best guess for the moment is:
lua_isboolean(L, -1) && !lua_toboolean(L, -1)
But maybe there is another way...