standalone: Add output_bool in demo library #331
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#331
Loading…
Reference in New Issue
No description provided.
Delete Branch "enhance/add-output-bool-to-demo-lib"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -11,6 +12,10 @@
#error "Unsupported platform - Platform is not 32-bit or 64-bit"
#endif
void output_bool(const bool x) {
const?
It's just to enforce an immutable-by-default design, similar to how objects in Rust are immutable unless
mut
is specified.Sounds like very idiosyncratic and probably ineffective C programming style.
Should I remove it then? It's just stylistic and doesn't change the ABI.
Yes, everywhere.
v2: Rebased against master
v3: Removed most usages of
const
in demo library, except in some pointer-to-const cases.