C API wrapper macros [NOT FOR MERGE] #4409
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
CAPI_XXX_BEGIN
andCAPI_XXX_END
macros replace the explicit definitions of C API function with macro-generated text. This is principally to make available the function name as a static string available to the exception wrapper.This PR is draft-only and should not be merged. It intended for (1) early review comments and (2) a test CI run. This version does not actually implement a complete system for the C API hook itself. It's primarily target is macros to define C API functions that can (later) add information required to log C API calls. The reason to use macros is to have the ability to using the stringify operator
#
on the function name; the name does not appear as text anywhere otherwise.TYPE: NO_HISTORY
DESC: C API wrapper macros