mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-11 20:31:02 +00:00
Tidy up bool implementation
This commit is contained in:
parent
5f7e520f8f
commit
7edc0bcd43
@ -38,6 +38,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
type_docs: {
|
type_docs: {
|
||||||
|
bool:
|
||||||
|
'''
|
||||||
|
Data type that contains values 0 and 1. Implementaed as an alias of `u8`.
|
||||||
|
'''
|
||||||
u64:
|
u64:
|
||||||
'''
|
'''
|
||||||
An unsigned 64-bit integral, commonly seen as `uint64_t` from _stdint.h_.
|
An unsigned 64-bit integral, commonly seen as `uint64_t` from _stdint.h_.
|
||||||
|
@ -27,6 +27,8 @@ def _xap_type_to_c_before(xt: str):
|
|||||||
return 'uint32_t'
|
return 'uint32_t'
|
||||||
elif xt == 'u64':
|
elif xt == 'u64':
|
||||||
return 'uint64_t'
|
return 'uint64_t'
|
||||||
|
elif xt == 'bool':
|
||||||
|
return 'uint8_t'
|
||||||
elif xt == 'string':
|
elif xt == 'string':
|
||||||
return 'const char*'
|
return 'const char*'
|
||||||
elif xt == 'token':
|
elif xt == 'token':
|
||||||
|
Loading…
Reference in New Issue
Block a user