diff options
| author | Tyge Løvset <[email protected]> | 2021-05-24 12:43:39 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-05-24 12:43:39 +0200 |
| commit | 64f50b93b08a8015783b2887e1ab5afd5fedb40c (patch) | |
| tree | ca70f0b4c87b0d59a9689b12d26bfa2bab160916 /include/stc/cqueue.h | |
| parent | 771a8dff31b0c0a905c57ec6f590cd03975f8817 (diff) | |
| download | STC-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.h | 2 |
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)
|
