bit.bit (arity 1)¶
Binary variable with initial value.
You can’t place it as you would any other standard library macro, because “running” this line is undefined behavior. All bit, bit.vec, hex, and hex.vec declarations should be placed in a region of memory that won’t ever be executed — typically below stl.loop.
Signature¶
def bit value { ... }
Defined in bit/memory.fj — lines 10–12 (view on GitHub).
Complexity¶
Time:
0 (data declaration)Space:
1
See the complexity glossary for what @, w, dw, dbit, n mean.
Source¶
Click to view the macro body
def bit value {
; value ? dw : 0
}
Used by¶
Example uses¶
bit.bitinbit/memory.fj
Next: bit.bit/0 →