summaryrefslogtreecommitdiffhomepage
path: root/include/CompilerKit/CodeGenerator.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-05 16:48:25 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-05 16:48:25 -0500
commit6decb96948f61b9a311467ecdb621a048fbcd3d6 (patch)
tree247d8b92e42068b53e2ebbeccb21e31a545ecd30 /include/CompilerKit/CodeGenerator.h
parent037ac38824623c13070384e8fc0e70c4770dcdbd (diff)
chore: CompilerKit breaking changes.v0.0.81
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/CompilerKit/CodeGenerator.h')
-rw-r--r--include/CompilerKit/CodeGenerator.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/CompilerKit/CodeGenerator.h b/include/CompilerKit/CodeGenerator.h
index 383f170..79b185b 100644
--- a/include/CompilerKit/CodeGenerator.h
+++ b/include/CompilerKit/CodeGenerator.h
@@ -10,12 +10,12 @@
#include <CompilerKit/Macros.h>
#include <cstring>
-#define CK_ASSEMBLY_INTERFACE : public ::CompilerKit::AssemblyInterface
+#define CK_ASSEMBLY_INTERFACE : public ::CompilerKit::IAssembly
#define CK_ENCODER : public ::CompilerKit::EncoderInterface
namespace CompilerKit {
class AssemblyFactory;
-class AssemblyInterface;
+class IAssembly;
/// =========================================================== ///
/// @brief Simple assembly factory
@@ -42,23 +42,23 @@ class AssemblyFactory final {
Int32 Compile(std::string sourceFile, const Int32& arch) noexcept;
- void Mount(AssemblyInterface* mountPtr) noexcept;
- AssemblyInterface* Unmount() noexcept;
+ void Mount(IAssembly* mountPtr) noexcept;
+ IAssembly* Unmount() noexcept;
private:
- AssemblyInterface* fMounted{nullptr};
+ IAssembly* fMounted{nullptr};
};
/// =========================================================== ///
/// @brief Assembly to binary generator class.
/// @note This interface creates according to the CPU target of the child class.
/// =========================================================== ///
-class AssemblyInterface {
+class IAssembly {
public:
- explicit AssemblyInterface() = default;
- virtual ~AssemblyInterface() = default;
+ explicit IAssembly() = default;
+ virtual ~IAssembly() = default;
- NECTI_COPY_DEFAULT(AssemblyInterface);
+ NECTI_COPY_DEFAULT(IAssembly);
virtual UInt32 Arch() noexcept { return AssemblyFactory::kArchAMD64; }