diff options
Diffstat (limited to 'content/2024-04-24-fn-wrapper-macro-magic')
-rw-r--r-- | content/2024-04-24-fn-wrapper-macro-magic/index.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/content/2024-04-24-fn-wrapper-macro-magic/index.md b/content/2024-04-24-fn-wrapper-macro-magic/index.md index 708336b..930eb88 100644 --- a/content/2024-04-24-fn-wrapper-macro-magic/index.md +++ b/content/2024-04-24-fn-wrapper-macro-magic/index.md @@ -52,9 +52,9 @@ have to be repeated for each wrapper. {{ include(path="content/2024-04-24-fn-wrapper-macro-magic/wrap-v1.cc") }} ``` -> In the code examples, I use the `MOCK_WRAPPER_IMPL`<sup><a href="#sup-1">1</a></sup> -> macro, to mock away the common pre and post work and to invoke the real -> function. +> In the code examples, I use the `MOCK_WRAPPER_IMPL`<sup id="sup-1-src"> +> <a href="#sup-1-dst">1</a></sup> macro, to mock away the common pre and post +> work and to invoke the real function. ## Version 2 @@ -189,10 +189,10 @@ friend: ## Footnotes -<div id="sup-1"></div> - -**1)** In the examples above, **MOCK_WRAPPER_IMPL** is a macro. However it does +<span id="sup-1-dst">**1)**</span> +In the examples above, **MOCK_WRAPPER_IMPL** is a macro. However it does not need to be one, as it can be seen in the [fn_hook.cc][fn-hook] example. +<a href="#sup-1-src">↩</a> [va-narg]: https://groups.google.com/g/comp.std.c/c/d-6Mj5Lko_s [va-args]: https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html |