/* libfmt/libobj.c - Integrate pico-fmt with libobj * * Copyright (C) 2025 Luke T. Shumaker * SPDX-License-Identifier: AGPL-3.0-or-later */ #include static void libfmt_conv_formatter(struct fmt_state *state) { lo_interface fmt_formatter obj = va_arg(*state->args, lo_interface fmt_formatter); LO_CALL(obj, format, state); } [[gnu::constructor]] static void libfmt_install_formatter(void) { fmt_install('v', libfmt_conv_formatter); }