Skip to content

Domnikov/gcc5_printf_check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gcc5_printf_check

GCC5 printf string format compilation time checking function

Using:

WITH_CHECK(FUNC, FORMAT_STRING, ...);

Example:

WITH_CHECK(printf, "[%d], [%s], [%d]\n", 1, 2, 3);

Output:

throw "Wrong type of argument 2"

About

Compilation time checking printf string format and arguments checking.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages