diff options
| -rw-r--r-- | include/CompilerKit/CodeGenerator.h | 3 | ||||
| -rw-r--r-- | include/CompilerKit/Detail/Config.h | 5 | ||||
| -rw-r--r-- | src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/include/CompilerKit/CodeGenerator.h b/include/CompilerKit/CodeGenerator.h index 69af3ba..ac42879 100644 --- a/include/CompilerKit/CodeGenerator.h +++ b/include/CompilerKit/CodeGenerator.h @@ -18,9 +18,6 @@ #define CK_ASSEMBLY_INTERFACE : public ::CompilerKit::IAssembly #define CK_ENCODER : public ::CompilerKit::IAssemblyEncoder -/// @brief This function is for internal uses only, do not call it without a wrapper! -CK_IMPORT_C bool NectarCheckFrontend(CompilerKit::STLString& input); - namespace CompilerKit { class AssemblyFactory; class IAssembly; diff --git a/include/CompilerKit/Detail/Config.h b/include/CompilerKit/Detail/Config.h index 651904e..14d4fd0 100644 --- a/include/CompilerKit/Detail/Config.h +++ b/include/CompilerKit/Detail/Config.h @@ -16,6 +16,7 @@ #include <ocl/tproc.hpp> namespace CompilerKit { + inline static constexpr int kBaseYear = 1900; using STLString = std::string; using RopeString = ocl::tproc::crope; @@ -63,6 +64,10 @@ inline bool install_signal(Int32 signal, void (*handler)(int)) noexcept { return true; } + } // namespace CompilerKit +/// @brief This function is for internal uses only, do not call it without a wrapper! +CK_IMPORT_C bool NectarCheckFrontend(CompilerKit::STLString& input); + #endif // __COMPILERKIT_CONFIG_H__ diff --git a/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp b/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp index 85ecc66..516c4d5 100644 --- a/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp +++ b/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp @@ -30,7 +30,8 @@ Int32 AssemblyFactory::Compile(STLString sourceFile, const Int32& arch) { try { std::filesystem::copy(sourceFile, compiledUnit); - } catch (...) {} + } catch (...) { + } auto ret = this->fMounted->CompileToFormat(compiledUnit, arch); |
