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

Add AmigaOS-style RawDoFmt() parameter validation. #53

Open
sba1 opened this issue Aug 17, 2018 · 0 comments
Open

Add AmigaOS-style RawDoFmt() parameter validation. #53

sba1 opened this issue Aug 17, 2018 · 0 comments

Comments

@sba1
Copy link
Owner

sba1 commented Aug 17, 2018

It should be possible to add an attribute to varargs derivatives of RawDoFmt() such as IUtility->SNPrintf() that causes the compiler to verify that format specifiers match the given parameters. If not a warning should be brought up.

The gcc has this feature since quite a while for printf()-style functions but these for now assume 32 bit ints while RawDoFmt() defaults to 16 bit width. The new attribute should probably be a variation of the existing attribute.

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

1 participant