libuilua icon indicating copy to clipboard operation
libuilua copied to clipboard

You should probably make boolean parameters boolean

Open andlabs opened this issue 9 years ago • 1 comments

uiBoxAppend()'s last argument, for example, is a boolean value with 0 being false and nonzero being true. C didn't really have a boolean type, which is why I made them int instead.

andlabs avatar May 22 '16 23:05 andlabs

  • On 2016-05-23 01:47:05 +0200, Pietro Gagliardi wrote:

uiBoxAppend()'s last argument, for example, is a boolean value with 0 being false and nonzero being true. C didn't really have a boolean type, which is why I made them int instead.

Fixed in af16ff2.

In the binding glue these types are already boolean, the 0/1 was only left in the example test code.

:wq ^X^Cy^K^X^C^C^C^C

zevv avatar May 23 '16 06:05 zevv