From 3989f5fa83db991c2a95002c5eaa46fb5c82acff Mon Sep 17 00:00:00 2001 From: Ed_ Date: Fri, 25 Oct 2024 12:54:55 -0400 Subject: [PATCH] formatting and removing unused code --- unreal_engine/enums/AttributeTokens.csv | 12 +++--- unreal_engine/unreal.cpp | 50 +------------------------ 2 files changed, 7 insertions(+), 55 deletions(-) diff --git a/unreal_engine/enums/AttributeTokens.csv b/unreal_engine/enums/AttributeTokens.csv index e56b45b..49f51a4 100644 --- a/unreal_engine/enums/AttributeTokens.csv +++ b/unreal_engine/enums/AttributeTokens.csv @@ -1,7 +1,7 @@ -API_Export, GEN_API_Export_Code -API_Import, GEN_API_Import_Code -UE_DEPRECATED, UE_DEPRECATED -UMG_API, UMG_API -COREUOBJECT_API, COREUOBJECT_API -ENGINE_API, ENGINE_API +API_Export, GEN_API_Export_Code +API_Import, GEN_API_Import_Code +COREUOBJECT_API, COREUOBJECT_API +ENGINE_API, ENGINE_API GAMEPLAYABILITIES_API, GAMEPLAYABILITIES_API +UMG_API, UMG_API +UE_DEPRECATED, UE_DEPRECATED diff --git a/unreal_engine/unreal.cpp b/unreal_engine/unreal.cpp index cc2111c..79cfcce 100644 --- a/unreal_engine/unreal.cpp +++ b/unreal_engine/unreal.cpp @@ -1,6 +1,6 @@ #define GEN_DEFINE_LIBRARY_CODE_CONSTANTS #define GEN_ENFORCE_STRONG_CODE_TYPES -#define GEN_EXPOSE_BACKEDN +#define GEN_EXPOSE_BACKEND #include "gen.cpp" #include "helpers/push_ignores.inline.hpp" @@ -104,54 +104,6 @@ int gen_main() } break; - case Preprocess_Pragma: - { - macros.append(code); - continue; - - local_persist bool found = false; - if (found) - { - macros.append(code); - continue; - } - - if (code->Content.starts_with(txt("region ForceInline Definition"))) - { - macros.append(code); - ++ code; - - CodeBody replacement = parse_global_body(StrC(txt( -R"(#ifdef GEN_COMPILER_MSVC - #define FORCEINLINE __forceinline - #define neverinline __declspec( noinline ) -#elif defined( GEN_COMPILER_GCC ) - #define FORCEINLINE inline __attribute__( ( __always_inline__ ) ) - #define neverinline __attribute__( ( __noinline__ ) ) -#elif defined( GEN_COMPILER_CLANG ) - #if __has_attribute( __always_inline__ ) - #define FORCEINLINE inline __attribute__( ( __always_inline__ ) ) - #define neverinline __attribute__( ( __noinline__ ) ) - #else - #define FORCEINLINE - #define neverinline - #endif -#else - #define FORCEINLINE - #define neverinline -#endif)"))); - macros.append(replacement); - - while (code->Type != ECode::Preprocess_Pragma - || ! code->Content.starts_with(txt("endregion ForceInline Definition"))) - ++ code; - - macros.append( code ); - found = true; - } - } - break; - default: macros.append(code); break;