diff options
| author | David Lamparter <equinox@diac24.net> | 2021-02-21 06:38:13 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2021-03-17 06:18:37 +0100 |
| commit | 96244aca23adec551c29b78f26605f8af8eea53e (patch) | |
| tree | 1f4b4216f3a73e5bddffa2898495a74b2992af0f /lib/qobj.h | |
| parent | 8451921b70044a2c1075e7ba391f095fabee2550 (diff) | |
*: require semicolon after DEFINE_QOBJ & co.
Again, see previous commits.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/qobj.h')
| -rw-r--r-- | lib/qobj.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/qobj.h b/lib/qobj.h index 400ae0151c..6d66dbf80d 100644 --- a/lib/qobj.h +++ b/lib/qobj.h @@ -92,7 +92,7 @@ struct qobj_node { const struct qobj_nodetype *type; }; -#define QOBJ_FIELDS struct qobj_node qobj_node; +#define QOBJ_FIELDS struct qobj_node qobj_node /* call these at the end of any _create function (QOBJ_REG) * and beginning of any _destroy function (QOBJ_UNREG) */ @@ -118,16 +118,19 @@ void *qobj_get_typed(uint64_t id, const struct qobj_nodetype *type); /* type declarations */ #define DECLARE_QOBJ_TYPE(structname) \ - extern const struct qobj_nodetype qobj_t_##structname; + extern const struct qobj_nodetype qobj_t_##structname \ + /* end */ #define DEFINE_QOBJ_TYPE(structname) \ const struct qobj_nodetype qobj_t_##structname = { \ .node_member_offset = \ - (ptrdiff_t)offsetof(struct structname, qobj_node)}; + (ptrdiff_t)offsetof(struct structname, qobj_node)} \ + /* end */ #define DEFINE_QOBJ_TYPE_INIT(structname, ...) \ const struct qobj_nodetype qobj_t_##structname = { \ .node_member_offset = \ (ptrdiff_t)offsetof(struct structname, qobj_node), \ - __VA_ARGS__}; + __VA_ARGS__} \ + /* end */ /* ID dereference with typecheck. * will return NULL if id not found or wrong type. */ |
