diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-09-26 22:57:56 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-09-26 22:57:56 +0200 |
commit | 8a1337c30ce54e0879145f82535a8b21a0301fc0 (patch) | |
tree | 28e07cc594c040da89872b146ffe213d31d4c24a /content/2024-04-24-fn-wrapper-macro-magic | |
parent | ed41c1ddd9d590165277c756f4498948490265ac (diff) | |
download | blog-8a1337c30ce54e0879145f82535a8b21a0301fc0.tar.gz blog-8a1337c30ce54e0879145f82535a8b21a0301fc0.zip |
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 |