grass
grass copied to clipboard
[Feat] MSVC positional argument support in printf
Since C99 all modern/POSIX printf implementations do support positional arguments. MSVC compiler and its libc printf implementation does not support positional arguments. MSVC provides a separate set of functions that do implement positional arguments (see MSVC documentation).
To enable MSVC support, we should change all message functions (e.g. G_message) to use MSVC ones when compiled with MSVC and current POSIX version for the rest.