summaryrefslogtreecommitdiffhomepage
path: root/include/stc/carc.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-11-13 11:25:25 +0100
committerTyge Løvset <[email protected]>2022-11-13 11:25:25 +0100
commit99fb2a81c771739e11091b84161f03d740eab084 (patch)
tree11fcb6b1fe8497b0cfa524987ec300fdf269557e /include/stc/carc.h
parente0fc0f2ec3846334496ab90b46ce1d69e9bbd230 (diff)
downloadSTC-modified-99fb2a81c771739e11091b84161f03d740eab084.tar.gz
STC-modified-99fb2a81c771739e11091b84161f03d740eab084.zip
Reverted forward declaration from c_declare_X back to c_forward_X, and the flag "i_opt c_declared" to "i_opt c_is_forward". Sorry about this, but hopefully not a widely used feature for most yet.
Diffstat (limited to 'include/stc/carc.h')
-rw-r--r--include/stc/carc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/carc.h b/include/stc/carc.h
index 9b52b0c4..69a5660e 100644
--- a/include/stc/carc.h
+++ b/include/stc/carc.h
@@ -94,7 +94,7 @@ typedef i_keyraw _cx_raw;
#define _i_atomic_inc(v) (void)(++*(v))
#define _i_atomic_dec_and_test(v) !(--*(v))
#endif
-#if !c_option(c_declared)
+#if !c_option(c_is_forward)
_cx_deftypes(_c_carc_types, _cx_self, i_key);
#endif
_cx_carc_rep { catomic_long counter; i_key value; };