From 80de28e3472613e8f6aa8b2730d56b5307f4fb9a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 17 Dec 2025 08:30:00 +0100 Subject: chore: Improved assembler backends. Signed-off-by: Amlal El Mahrouss --- include/CompilerKit/CodeGenerator.h | 2 +- include/CompilerKit/Detail/Config.h | 2 +- include/CompilerKit/Ref.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include/CompilerKit') diff --git a/include/CompilerKit/CodeGenerator.h b/include/CompilerKit/CodeGenerator.h index 36663ca..f2875bf 100644 --- a/include/CompilerKit/CodeGenerator.h +++ b/include/CompilerKit/CodeGenerator.h @@ -46,7 +46,7 @@ class AssemblyFactory final { Int32 Compile(STLString sourceFile, const Int32& arch) noexcept; - void Mount(WeakRef mountPtr) noexcept; + void Mount(WeakRef mountPtr) noexcept; WeakRef Unmount() noexcept; private: diff --git a/include/CompilerKit/Detail/Config.h b/include/CompilerKit/Detail/Config.h index 3935fa3..79bc7fc 100644 --- a/include/CompilerKit/Detail/Config.h +++ b/include/CompilerKit/Detail/Config.h @@ -64,4 +64,4 @@ inline bool install_signal(Int32 signal, void (*handler)(int)) noexcept { } } // namespace CompilerKit -#endif // __COMPILERKIT_CONFIG_H__ \ No newline at end of file +#endif // __COMPILERKIT_CONFIG_H__ \ No newline at end of file diff --git a/include/CompilerKit/Ref.h b/include/CompilerKit/Ref.h index 3dee0c0..4063508 100644 --- a/include/CompilerKit/Ref.h +++ b/include/CompilerKit/Ref.h @@ -38,7 +38,7 @@ class StrongRef { public: StrongRef(Type* cls) : m_Class(cls), m_Strong(true) {} - StrongRef& operator=(Type *ref) { + StrongRef& operator=(Type* ref) { m_Class = ref; return *this; } @@ -62,7 +62,7 @@ class StrongRef { template class WeakRef final : public StrongRef { public: - WeakRef() = delete; + WeakRef() = delete; ~WeakRef() = default; NECTI_COPY_DEFAULT(WeakRef) @@ -94,5 +94,5 @@ class NonNullRef final { }; using StrongAny = StrongRef; -using WeakAny = WeakRef; +using WeakAny = WeakRef; } // namespace CompilerKit -- cgit v1.2.3