]> git.kaiwu.me - quickjs.git/commitdiff
define the same atoms with or without CONFIG_ATOMICS (github issue #76)
authorFabrice Bellard <fabrice@bellard.org>
Wed, 27 Dec 2023 17:28:54 +0000 (18:28 +0100)
committerFabrice Bellard <fabrice@bellard.org>
Wed, 27 Dec 2023 17:28:54 +0000 (18:28 +0100)
quickjs-atom.h

index d278ae47eae65fdd5ea2d87361afb7f9421e849f..e931c31f3c67d96a9bcd65168d7bb9c7d06306ec 100644 (file)
@@ -178,11 +178,11 @@ DEF(roundingMode, "roundingMode")
 DEF(maximumSignificantDigits, "maximumSignificantDigits")
 DEF(maximumFractionDigits, "maximumFractionDigits")
 #endif
-#ifdef CONFIG_ATOMICS
+/* the following 3 atoms are only used with CONFIG_ATOMICS */
 DEF(not_equal, "not-equal")
 DEF(timed_out, "timed-out")
 DEF(ok, "ok")
-#endif
+/* */
 DEF(toJSON, "toJSON")
 /* class names */
 DEF(Object, "Object")