summaryrefslogtreecommitdiffhomepage
path: root/src/CompilerKit/Utilities/DLL.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-04 16:22:22 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-04 16:25:57 +0100
commit654c31b94d547e8d83be378eb5d5ab16a820dcdd (patch)
tree96b33b2722401bf556de941617b085905b371789 /src/CompilerKit/Utilities/DLL.h
parentcd3092186eb698a9ed175dacb6884f0404e7c062 (diff)
chore:: breaking structural changes of CompilerKit.
The Kit has been redesigned to be expandable to new language frontends. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/CompilerKit/Utilities/DLL.h')
-rw-r--r--src/CompilerKit/Utilities/DLL.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CompilerKit/Utilities/DLL.h b/src/CompilerKit/Utilities/DLL.h
index 58e0cc7..5bfe032 100644
--- a/src/CompilerKit/Utilities/DLL.h
+++ b/src/CompilerKit/Utilities/DLL.h
@@ -20,6 +20,10 @@ struct CompilerKitDylibTraits final {
CompilerKitEntrypoint fEntrypoint{nullptr};
std::mutex fMutex;
+ explicit operator bool() {
+ return fDylib && fEntrypoint;
+ }
+
CompilerKitDylibTraits& operator()(const Char* path, const Char* fEntrypoint) {
std::lock_guard<std::mutex> lock(this->fMutex);