From 64c0b7de023886c246f534a4d73f4102fdb06783 Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Fri, 7 Jan 2022 23:01:22 +0000 Subject: [PATCH] Avoid _VA_LIST_ in EVT_CALL (#611) Fixes a weird compile error on precomp --- include/script_api/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/script_api/macros.h b/include/script_api/macros.h index 4d1b5ba9d4..8da11e64b9 100644 --- a/include/script_api/macros.h +++ b/include/script_api/macros.h @@ -502,7 +502,7 @@ /// EVT_CALL(ApiFunction) /// /// The given arguments can be accessed from the API function using `thread->ptrReadPos`. -#define EVT_CALL(FUNC, ...) EVT_CMD(EVT_OP_CALL, (Bytecode) FUNC, ##__VA_ARGS__), +#define EVT_CALL(FUNC, ARGS...) EVT_CMD(EVT_OP_CALL, (Bytecode) FUNC, ##ARGS), /****** COMMON SCRIPTS ************************************************************************************************/