From 7d4aed7fef1944c4446b8e70d6b71b7229794281 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Fri, 14 Aug 2026 14:49:53 +0000 Subject: [PATCH] c-api: pin result enum ABI width Amp-Thread-ID: https://ampcode.com/threads/T-01a0008f-8e42-764d-91fe-ccf2a7c854fc Co-authored-by: Tim Culverhouse --- include/vaxis.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/vaxis.h b/include/vaxis.h index 8b42f7a..63bcb8e 100644 --- a/include/vaxis.h +++ b/include/vaxis.h @@ -55,6 +55,9 @@ typedef enum VAXIS_ENUM_TYPED { /* Reserved: the current parser substitutes invalid UTF-8 rather than * reporting it, so this code is not produced today. */ VAXIS_ERR_INVALID_UTF8 = -3, + + /* Sentinel to pin the enum to int width; never produced. */ + VAXIS_RESULT_MAX_VALUE = VAXIS_ENUM_MAX_VALUE, } vaxis_result; /* Event types */ -- 2.51.2