My use case that I use C library, which API allows replacing default function with my own function:
typedef void (*LogCallback)(Domain, Level, const char *fmt, va_list args); void registerCallback(LogCallback callback, bool preformatted);
I obviosly want to replace to use log crate and unify logging inside my program.
Obviosly the problem in
As I see there is issue about this, but it is not part of stable yet, is it true?
But there is https://docs.rs/va_list/0.1.3/va_list/ , any idea how it works without rust compiler support?
Also there is
preformatted argument in
registerCallback, with it
fmt will contain full string,
va_list will be
NULL. But I can not see it helps me or not.
Is it UB to define va_arg in some compatitable way and just ignore it?