1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00

Document binary literals

This commit is contained in:
Lauri Kasanen 2019-07-17 09:28:14 +03:00 committed by Oliver Schmidt
parent 1bfdce55ed
commit 5cbbb4597f

View File

@ -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
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>
<p>