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
This looks interesting and useful for handling the Linux kernel, an important target for analysis. We should be sure to guard/enable it appropriately as a GNU extension.
GNU C supports a non-standard feature that allows one to omit the variadics without the additional comma.
For example,
pr_fmt("HELLO")
will expand toprintf("HELLO", )
with an additional comma,
, which is not ideal.GNU C introduces the feature that if adds a preceding
##
, the additional comma will automatically be removed.This produces
printf("HELLO")
.Given that there is already some implementation in C++ 2a around ommitable variadics here, it shouldn't be too hard to support this feature.
Linux kernel extensively uses this feature.
The text was updated successfully, but these errors were encountered: