Skip to content

Commit 3518547

Browse files
gnzlbgaswaterman
authored andcommitted
Document the value of Booleans (#109)
1 parent 17e5103 commit 3518547

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

riscv-elf.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,13 @@ the imaginary part.
300300
A future version of this specification may define an ILP32 ABI for
301301
RV64G, but currently this is not a supported operating mode.
302302

303+
Booleans (`bool`/`_Bool`) stored in memory or when being passed as scalar
304+
arguments are either `0` (`false`) or `1` (`true`).
303305

304306
A null pointer (for all types) has the value zero.
305307

306308
The value of `_Alignof(max_align_t)` is 16.
307309

308-
309310
## <a name=va-list-va-start-and-va-arg></a> va_list, va_start, and va_arg
310311

311312
The `va_list` type is `void*`. A callee with variadic arguments is responsible

0 commit comments

Comments
 (0)