mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Document binary literals
This commit is contained in:
parent
1bfdce55ed
commit
5cbbb4597f
@ -814,6 +814,14 @@ This cc65 version has some extensions to the ISO C standard.
|
|||||||
In the jump table, no expressions are supported. The array index
|
In the jump table, no expressions are supported. The array index
|
||||||
used in the goto must be a simple variable or a constant.
|
used in the goto must be a simple variable or a constant.
|
||||||
|
|
||||||
|
<item> Binary literals, a C++14 feature and a GCC C extension, are accepted.
|
||||||
|
They can be disabled with the <tt><ref id="option--standard"
|
||||||
|
name="--standard"></tt> option.
|
||||||
|
|
||||||
|
<tscreen><verb>
|
||||||
|
unsigned char foo = 0b101; // sets it to 5
|
||||||
|
</verb></tscreen>
|
||||||
|
|
||||||
</itemize>
|
</itemize>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user