From a67fdef20adb5c5846de1b2eb56a53003bb14579 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Sat, 30 Nov 2024 16:50:53 -0500 Subject: [PATCH] dir restructuring just making it more organized (gen_ prefix for library generation meta-programs) --- gen_c_library/c_library.cpp | 21 +++++++++++++++++++ {singleheader => gen_singleheader}/Readme.md | 2 +- .../components/header_start.hpp | 0 .../singleheader.cpp | 0 .../Readme.md | 0 .../components/header_start.hpp | 0 .../components/src_start.cpp | 0 .../enums/AttributeTokens.csv | 0 .../unreal.cpp | 0 9 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 gen_c_library/c_library.cpp rename {singleheader => gen_singleheader}/Readme.md (50%) rename {singleheader => gen_singleheader}/components/header_start.hpp (100%) rename {singleheader => gen_singleheader}/singleheader.cpp (100%) rename {unreal_engine => gen_unreal_engine}/Readme.md (100%) rename {unreal_engine => gen_unreal_engine}/components/header_start.hpp (100%) rename {unreal_engine => gen_unreal_engine}/components/src_start.cpp (100%) rename {unreal_engine => gen_unreal_engine}/enums/AttributeTokens.csv (100%) rename {unreal_engine => gen_unreal_engine}/unreal.cpp (100%) diff --git a/gen_c_library/c_library.cpp b/gen_c_library/c_library.cpp new file mode 100644 index 0000000..5ced522 --- /dev/null +++ b/gen_c_library/c_library.cpp @@ -0,0 +1,21 @@ +#define GEN_DEFINE_LIBRARY_CODE_CONSTANTS +#define GEN_ENFORCE_STRONG_CODE_TYPES +#define GEN_EXPOSE_BACKEND +#include "gen.cpp" + +#include "helpers/push_ignores.inline.hpp" +#include "helpers/helper.hpp" + +GEN_NS_BEGIN +#include "dependencies/parsing.cpp" +GEN_NS_END + +#include "auxillary/builder.hpp" +#include "auxillary/builder.cpp" +#include "auxillary/scanner.hpp" + +#include // for system() + +using namespace gen; + + diff --git a/singleheader/Readme.md b/gen_singleheader/Readme.md similarity index 50% rename from singleheader/Readme.md rename to gen_singleheader/Readme.md index aa7f724..50eb682 100644 --- a/singleheader/Readme.md +++ b/gen_singleheader/Readme.md @@ -1,4 +1,4 @@ # Singleheader -Creates a single header file version of the library using `gen.singleheader.cpp`. +Creates a single header file version of the library using `singleheader.cpp`. Follows the same convention seen in the gb, stb, and zpl libraries. diff --git a/singleheader/components/header_start.hpp b/gen_singleheader/components/header_start.hpp similarity index 100% rename from singleheader/components/header_start.hpp rename to gen_singleheader/components/header_start.hpp diff --git a/singleheader/singleheader.cpp b/gen_singleheader/singleheader.cpp similarity index 100% rename from singleheader/singleheader.cpp rename to gen_singleheader/singleheader.cpp diff --git a/unreal_engine/Readme.md b/gen_unreal_engine/Readme.md similarity index 100% rename from unreal_engine/Readme.md rename to gen_unreal_engine/Readme.md diff --git a/unreal_engine/components/header_start.hpp b/gen_unreal_engine/components/header_start.hpp similarity index 100% rename from unreal_engine/components/header_start.hpp rename to gen_unreal_engine/components/header_start.hpp diff --git a/unreal_engine/components/src_start.cpp b/gen_unreal_engine/components/src_start.cpp similarity index 100% rename from unreal_engine/components/src_start.cpp rename to gen_unreal_engine/components/src_start.cpp diff --git a/unreal_engine/enums/AttributeTokens.csv b/gen_unreal_engine/enums/AttributeTokens.csv similarity index 100% rename from unreal_engine/enums/AttributeTokens.csv rename to gen_unreal_engine/enums/AttributeTokens.csv diff --git a/unreal_engine/unreal.cpp b/gen_unreal_engine/unreal.cpp similarity index 100% rename from unreal_engine/unreal.cpp rename to gen_unreal_engine/unreal.cpp