Add struct field tag fmt formatting

This commit is contained in:
gingerBill
2025-02-05 10:30:14 +00:00
parent 802895aa43
commit 83542a3f04
4 changed files with 19 additions and 19 deletions
+4 -4
View File
@@ -34,20 +34,20 @@ hid_bus_type :: enum c.int {
hid_device_info :: struct {
/** Platform-specific device path */
path: [^]c.char,
path: [^]c.char `fmt:"q,0"`,
/** Device Vendor ID */
vendor_id: c.ushort,
/** Device Product ID */
product_id: c.ushort,
/** Serial Number */
serial_number: [^]c.wchar_t,
serial_number: [^]c.wchar_t `fmt:"q,0"`,
/** Device Release Number in binary-coded decimal,
also known as Device Version Number */
release_number: c.ushort,
/** Manufacturer String */
manufacturer_string: [^]c.wchar_t,
manufacturer_string: [^]c.wchar_t `fmt:"q,0"`,
/** Product string */
product_string: [^]c.wchar_t,
product_string: [^]c.wchar_t `fmt:"q,0"`,
/** Usage Page for this Device/Interface
(Windows/Mac/hidraw only) */
usage_page: c.ushort,