Skip to content

added format argument to NOB_TODOF and NOB_UNREACHABLEF#255

Open
theNoof wants to merge 1 commit into
tsoding:mainfrom
theNoof:main
Open

added format argument to NOB_TODOF and NOB_UNREACHABLEF#255
theNoof wants to merge 1 commit into
tsoding:mainfrom
theNoof:main

Conversation

@theNoof

@theNoof theNoof commented Jul 15, 2026

Copy link
Copy Markdown

Adds a format argument to NOB_TODOF and NOB_UNREACHABLEF to make the signature of those a bit more clear.

the previous issue with explicitly adding a format string was that it would break when not giving any other arguments due to a trailing , (only for some compilers/versions?).

with the token concatenation (as seen in the diff), when __VA_ARGS__ is empty, the token toncatenation 'fails' and also removes the comma.

i did a liddle test to confirm its working, seems to be all good. tested with no argument, only format, and other arguments.

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

Successfully merging this pull request may close these issues.

1 participant