cpp-common/bt2c: add `format_as` function for `bt2::MessageType`
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 8 Feb 2024 20:36:41 +0000 (15:36 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 9 Feb 2024 19:07:31 +0000 (14:07 -0500)
commit7cf8258bc7c82e1ef4745549d5a729c88f931b62
tree27ee5c3d72c84fdba9abac085651ee4def1c3477
parent1a543dc4a5c9f1f4dcb940f1622fbf1c283e6047
cpp-common/bt2c: add `format_as` function for `bt2::MessageType`

Add a `format_as` that lets {fmt} format variables of type
`bt2::MessageType` directly.  Re-use `bt_common_message_type_string` to
avoid duplicating that code.

Change-Id: I81152a152284b156535813fd8fa5d61a3dd7219f
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
src/Makefile.am
src/cpp-common/bt2c/fmt.hpp [new file with mode: 0644]
This page took 0.025391 seconds and 4 git commands to generate.