We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e20b121 commit 9718010Copy full SHA for 9718010
src/tbox/prefix/keyword.h
@@ -215,7 +215,28 @@
215
# define __tb_no_sanitize_address__
216
#endif
217
218
-// the object reference type, .e.g tb_xxx_ref_t
+/*! the type reference keyword for defining tb_xxxx_ref_t
219
+ *
220
+ * typedef __tb_typeref__(xxxx);
221
222
223
+ * suppress gcc 4.9 on c++ codes warning: '__tb_yyyy_t' has a field '__tb_yyyy_t::xxxx' whose type uses the anonymous namespace
224
225
+ * @code
226
227
+ typedef struct{}* tb_xxxx_ref_t;
228
+
229
+ typedef struct __tb_yyyy_t
230
+ {
231
+ tb_xxxx_ref_t xxxx;
232
233
+ }__tb_yyyy_t;
234
235
236
237
+ * @endcode
238
239
+ */
240
#define __tb_typeref__(object) struct __tb_##object##_dummy_t{tb_int_t dummy;}* tb_##object##_ref_t
241
242
// macros
0 commit comments