You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a function prototype in a header file occurs in both branches of an #ifdef conditional, it is only rewritten to the correct checked type in one branch even if both branches are expanded by at different times when the header is included in different files.
In the example below, only the #else branch is rewritten. Since a.c takes the #if branch, it sees an unchecked prototype, causing a compiler error.
This pattern is used by yacr2 in the ptrdist benchmark.