Fix missing optional include

This commit is contained in:
acidicoala
2025-10-03 23:29:57 +05:00
parent 99564ae4b7
commit aea513fbd1
4 changed files with 9 additions and 8 deletions

View File

@@ -3,7 +3,8 @@ on: push
jobs:
build:
uses: acidicoala/KoalaBox/.github/workflows/build.yml@73f2c19439dc5634a23a2811bfda2d12ef29031c
name: 🏗️ Build
uses: acidicoala/KoalaBox/.github/workflows/build.yml@7e2adda55bf584b203d644b872bc329136d8c15c
with:
module: '[ "SmokeAPI" ]'
os: '[ "Windows", "Linux" ]'

View File

@@ -25,9 +25,9 @@
#include "build_config.h"
#ifdef KB_WIN
#if defined(KB_WIN)
#include "koalabox/win.hpp"
#elifdef KB_LINUX
#elif defined(KB_LINUX)
#include "proxy_exports.hpp"
#endif

View File

@@ -4,10 +4,10 @@
#include <koalabox/hook.hpp>
#ifdef KB_WIN
#if defined(KB_WIN)
#define VIRTUAL(TYPE) __declspec(noinline) TYPE __fastcall // NOLINT(*-macro-parentheses)
#define C_DECL(TYPE) extern "C" __declspec(noinline) TYPE __cdecl
#elifdef KB_LINUX
#elif defined(KB_LINUX)
#define VIRTUAL(TYPE) __attribute__ ((__noinline__)) TYPE
#define C_DECL(TYPE) extern "C" __attribute__ ((__noinline__)) TYPE
#endif
@@ -42,7 +42,7 @@
* will store the 1st actual argument to the function, so we
* have to omit it from the function signature.
*/
#ifdef KB_WIN
#if defined(KB_WIN)
#ifdef KB_64
#define PARAMS(...) const void* RCX __VA_OPT__(,) __VA_ARGS__
#define ARGS(...) RCX __VA_OPT__(,) __VA_ARGS__
@@ -54,7 +54,7 @@
#define THIS ECX
#define DECLARE_ARGS() void* ECX = nullptr; const void* EDX = nullptr;
#endif
#elifdef KB_LINUX
#elif defined(KB_LINUX)
#ifdef KB_64
#define PARAMS(...) const void* $RDI __VA_OPT__(,) __VA_ARGS__
#define ARGS(...) $RDI __VA_OPT__(,) __VA_ARGS__