diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-11-04 15:47:33 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-11-04 15:47:33 -0800 |
commit | 18d2918a02028bf649607bb9959b926d10f184f6 (patch) | |
tree | 1aeea75d16a17ed14649f9f47b18e5605f3b6044 /example.c | |
parent | 31dea83f4e5f3e57c3fc05d8ad01a58dc844c2c7 (diff) |
thunk: introduce public variant of THUNK_DEFINE
This is necessarily split in two:
THUNK_DEFINE()
THUNK_DECLARE()
use is identical to the original THUNK_DEFINE (now THUNK_DEFINE_STATIC),
and you supply the same input to both DEFINE and DECLARE.
The THUNK_DECLARE() should go in the public header, which you also
include in the implementing .c file, not just from consumers.
The THUNK_DEFINE() goes in the implementing .c file, same as before.
Use this variant when you wish to instantiate via THUNK() from external
listings, just include the THUNK_DECLARE()-containing .h.
Diffstat (limited to 'example.c')
0 files changed, 0 insertions, 0 deletions