Skip to content

Commit

Permalink
LuaBitOps.cpp: Minimum two args for varargs
Browse files Browse the repository at this point in the history
  • Loading branch information
rhys-vdw committed Nov 18, 2024
1 parent ad96a02 commit 6e456d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rts/Lua/LuaBitOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ static inline unsigned int luaL_checkuint(lua_State* L, int index)
/*** Returns the bitwise OR of all arguments. Only use up to 24 bit integers.
*
* @function math.bit_or
* @param a1 integer
* @param a2 integer
* @param ... integer
* @return integer result
*/
Expand All @@ -75,6 +77,8 @@ int LuaBitOps::bit_or(lua_State* L)
/*** Returns the bitwise AND of all arguments. Only use up to 24 bit integers.
*
* @function math.bit_and
* @param a1 integer
* @param a2 integer
* @param ... integer
* @return integer result
*/
Expand All @@ -92,6 +96,8 @@ int LuaBitOps::bit_and(lua_State* L)
/*** Returns the bitwise XOR of all arguments. Only use up to 24 bit integers.
*
* @function math.bit_xor
* @param a1 integer
* @param a2 integer
* @param ... integer
* @return integer result
*/
Expand Down Expand Up @@ -123,6 +129,8 @@ int LuaBitOps::bit_inv(lua_State* L)
/*** Set each of the bits of a 24 bit integer. Returns result = result OR (1 << a1) OR (1 << a2) OR ...;)
*
* @function math.bit_bits
* @param a1 integer
* @param a2 integer
* @param ... integer
* @return integer result
*/
Expand Down

0 comments on commit 6e456d4

Please sign in to comment.