summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cqueue.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-05-24 12:43:39 +0200
committerTyge Løvset <[email protected]>2021-05-24 12:43:39 +0200
commit64f50b93b08a8015783b2887e1ab5afd5fedb40c (patch)
treeca70f0b4c87b0d59a9689b12d26bfa2bab160916 /include/stc/cqueue.h
parent771a8dff31b0c0a905c57ec6f590cd03975f8817 (diff)
downloadSTC-modified-64f50b93b08a8015783b2887e1ab5afd5fedb40c.tar.gz
STC-modified-64f50b93b08a8015783b2887e1ab5afd5fedb40c.zip
Renamed c_with => c_fordefer, and removed c_withvar. Macros were too deceiving and hid the fact that it was for-loops. Now it is more explicit.
Diffstat (limited to 'include/stc/cqueue.h')
-rw-r--r--include/stc/cqueue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cqueue.h b/include/stc/cqueue.h
index 37d18fba..99afc296 100644
--- a/include/stc/cqueue.h
+++ b/include/stc/cqueue.h
@@ -35,7 +35,7 @@
stc64_t rng = stc64_init(1234);
stc64_uniform_t dist = stc64_uniform_init(rng, 0, n);
- c_with (cqueue_i queue = cqueue_i_init(), cqueue_i_del(&queue))
+ c_fordefer (cqueue_i queue = cqueue_i_init(), cqueue_i_del(&queue))
{
// Push ten million random numbers onto the queue.
for (int i=0; i<n; ++i)