We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac83be3 commit 3db0560Copy full SHA for 3db0560
include/secp256k1.h
@@ -169,6 +169,17 @@ typedef int (*secp256k1_nonce_function)(
169
# define SECP256K1_ARG_NONNULL(_x)
170
# endif
171
172
+/** Attribute for marking functions, types, and variables as deprecated */
173
+#if !defined(SECP256K1_BUILD) && defined(__has_attribute)
174
+# if __has_attribute(__deprecated__)
175
+# define SECP256K1_DEPRECATED(_msg) __attribute__ ((__deprecated__(_msg)))
176
+# else
177
+# define SECP256K1_DEPRECATED(_msg)
178
+# endif
179
+#else
180
181
+#endif
182
+
183
/** All flags' lower 8 bits indicate what they're for. Do not use directly. */
184
#define SECP256K1_FLAGS_TYPE_MASK ((1 << 8) - 1)
185
#define SECP256K1_FLAGS_TYPE_CONTEXT (1 << 0)
0 commit comments