From 2257ad1567fbc20f8b59dc809345fd8bc6cb1f5c Mon Sep 17 00:00:00 2001 From: belliash Date: Tue, 28 Mar 2023 17:33:38 +0200 Subject: [PATCH] Add XTASSEMBLY routine modifier to instruct compiler to generate code without prolog and epilog --- sdk/xtdk/xtdefs.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/sdk/xtdk/xtdefs.h b/sdk/xtdk/xtdefs.h index d29a1c5..6f80cdb 100644 --- a/sdk/xtdk/xtdefs.h +++ b/sdk/xtdk/xtdefs.h @@ -13,18 +13,19 @@ /* Routines and arguments modifiers */ #define IN #define OUT -#define XTAPI __stdcall -#define XTCDECL __cdecl -#define XTFASTCALL __fastcall -#define XTINLINE __inline +#define XTAPI __stdcall +#define XTCDECL __cdecl +#define XTFASTCALL __fastcall +#define XTINLINE __inline +#define XTASSEMBLY __declspec(naked) /* Variable modifiers */ -#define CONST const -#define EXTERN extern -#define STRUCT struct -#define STATIC static -#define UNION union -#define VOLATILE volatile +#define CONST const +#define EXTERN extern +#define STRUCT struct +#define STATIC static +#define UNION union +#define VOLATILE volatile /* NULL values */ #define NULL ((PVOID) 0)