Commit 9c5147de authored by Inseob Kim's avatar Inseob Kim
Browse files

Support boolean props which use "0"/"1"

There are too many properties which treats "0" and "1" as its boolean
value, not "false" and "true". By setting integer_as_bool as true, one
can make setter use "0" and "1" instead. Note that this flag only works
with Boolean or BooleanList, and will emit an error if used with other
types.

Bug: 126261296
Test: 1) see compiling with various properties succeeds.
Test: 2) try to call setter with and without integer_as_bool.
Change-Id: Idf51058d0ad34312784ff28feb6a76666817b836
parent 803bfb8f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment