From 0216a66e8999fe282857ad18e8a4e9b8238d5bf8 Mon Sep 17 00:00:00 2001 From: alk <45172705+altalk23@users.noreply.github.com> Date: Sat, 18 Mar 2023 21:59:53 +0300 Subject: [PATCH] Fix cutoff constructor --- loader/include/Geode/DefaultInclude.hpp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/loader/include/Geode/DefaultInclude.hpp b/loader/include/Geode/DefaultInclude.hpp index 05e6805f..35224e79 100644 --- a/loader/include/Geode/DefaultInclude.hpp +++ b/loader/include/Geode/DefaultInclude.hpp @@ -76,15 +76,19 @@ namespace geode { ) {} \ Class_(geode::CutoffConstructorType, void*) -#define GEODE_CUTOFF_CONSTRUCTOR_BEGIN(Class_) \ - GEODE_MACOS(GEODE_FILL_CONSTRUCTOR(Class_, 0){}) \ - GEODE_IOS(GEODE_FILL_CONSTRUCTOR(Class_, 0){}) +#define GEODE_CUTOFF_CONSTRUCTOR_BEGIN(Class_) \ + GEODE_MACOS(GEODE_FILL_CONSTRUCTOR(Class_, 0){}) \ + GEODE_IOS(GEODE_FILL_CONSTRUCTOR(Class_, 0){}) \ + GEODE_WINDOWS(Class_(geode::CutoffConstructorType, size_t fill) \ + : Class_() {}) -#define GEODE_CUTOFF_CONSTRUCTOR_COCOS(Class_, Base_) \ - GEODE_MACOS(Class_(geode::CutoffConstructorType, size_t fill) \ - : Base_(geode::CutoffConstructor, fill){}) \ - GEODE_IOS(Class_(geode::CutoffConstructorType, size_t fill) \ - : Base_(geode::CutoffConstructor, fill){}) +#define GEODE_CUTOFF_CONSTRUCTOR_COCOS(Class_, Base_) \ + GEODE_MACOS(Class_(geode::CutoffConstructorType, size_t fill) \ + : Base_(geode::CutoffConstructor, fill){}) \ + GEODE_IOS(Class_(geode::CutoffConstructorType, size_t fill) \ + : Base_(geode::CutoffConstructor, fill){}) \ + GEODE_WINDOWS(Class_(geode::CutoffConstructorType, size_t fill) \ + : Class_() {}) #define GEODE_CUTOFF_CONSTRUCTOR_GD(Class_, Base_) \ GEODE_WINDOWS(Class_(geode::CutoffConstructorType, size_t fill) \