summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cpque.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-05-24 19:12:22 +0200
committerTyge Løvset <[email protected]>2021-05-24 19:12:22 +0200
commit1490bbe1aa98b4081c226060834d54d05bf7e6e3 (patch)
tree5c3cd1aa6cee6730a9923c34ee3bdf5d60456be2 /include/stc/cpque.h
parentb2f0250fd70c54ca55bd430f748b3ad21c24a86a (diff)
downloadSTC-modified-1490bbe1aa98b4081c226060834d54d05bf7e6e3.tar.gz
STC-modified-1490bbe1aa98b4081c226060834d54d05bf7e6e3.zip
Split c_fordefer() into c_forvar() and c_fordefer() macros.
Diffstat (limited to 'include/stc/cpque.h')
-rw-r--r--include/stc/cpque.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cpque.h b/include/stc/cpque.h
index afdd41ac..c6e0ed61 100644
--- a/include/stc/cpque.h
+++ b/include/stc/cpque.h
@@ -32,7 +32,7 @@
stc64_t rng = stc64_init(1234);
stc64_uniformf_t dist = stc64_uniformf_init(10.0f, 100.0f);
- c_fordefer (cpque_f queue = cpque_f_init(), cpque_f_del(&queue))
+ c_forvar (cpque_f queue = cpque_f_init(), cpque_f_del(&queue))
{
// Push ten million random numbers onto the queue.
for (int i=0; i<10000000; ++i)