From 654c31b94d547e8d83be378eb5d5ab16a820dcdd Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 4 Dec 2025 16:22:22 +0100 Subject: chore:: breaking structural changes of CompilerKit. The Kit has been redesigned to be expandable to new language frontends. Signed-off-by: Amlal El Mahrouss --- src/CompilerKit/Utilities/DLL.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/CompilerKit/Utilities/DLL.h') 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 lock(this->fMutex); -- cgit v1.2.3