mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Functions that take a boolean argument now properly type-check for it.
--HG-- branch : minor
This commit is contained in:
@@ -125,6 +125,12 @@ bool luax_isarrayoftables(lua_State *L, int idx);
|
||||
**/
|
||||
bool luax_toboolean(lua_State *L, int idx);
|
||||
|
||||
/**
|
||||
* Returns the boolean value at idx. Causes a Lua error if the value is not
|
||||
* a boolean.
|
||||
**/
|
||||
bool luax_checkboolean(lua_State *L, int idx);
|
||||
|
||||
/**
|
||||
* Pushes a bool onto the stack. It's the same as lua_pushboolean,
|
||||
* but with bool instead of int.
|
||||
|
||||
Reference in New Issue
Block a user