Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An example of procedural macro in public API #278

Open
phadej opened this issue Nov 13, 2024 · 0 comments
Open

An example of procedural macro in public API #278

phadej opened this issue Nov 13, 2024 · 0 comments

Comments

@phadej
Copy link
Collaborator

phadej commented Nov 13, 2024

in xxhash there is

#define XXH3_INITSTATE(XXH3_state_ptr)                       \
    do {                                                     \
        XXH3_state_t* tmp_xxh3_state_ptr = (XXH3_state_ptr); \
        tmp_xxh3_state_ptr->seed = 0;                        \
        tmp_xxh3_state_ptr->extSecret = NULL;                \
    } while(0)
@edsko edsko added this to the 4: Additional features milestone Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants