mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2025-12-06 05:25:43 -05:00
Fix missing optional include
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -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" ]'
|
||||
|
||||
2
KoalaBox
2
KoalaBox
Submodule KoalaBox updated: 73f2c19439...7e2adda55b
@@ -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
|
||||
|
||||
|
||||
@@ -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__
|
||||
|
||||
Reference in New Issue
Block a user