From 644d190e985521fc337b0612391de2c3fd679340 Mon Sep 17 00:00:00 2001 From: Jesse Talavera-Greenberg Date: Wed, 6 Dec 2023 09:12:56 -0500 Subject: Add stubs for `NDS::IsJITEnabled` and `SetJITArgs` for when the JIT is excluded --- src/NDS.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NDS.h b/src/NDS.h index c0b429e..1a6d475 100644 --- a/src/NDS.h +++ b/src/NDS.h @@ -437,6 +437,9 @@ public: #ifdef JIT_ENABLED [[nodiscard]] bool IsJITEnabled() const noexcept { return EnableJIT; } void SetJITArgs(std::optional args) noexcept; +#else + [[nodiscard]] bool IsJITEnabled() const noexcept { return false; } + void SetJITArgs(std::optional args) noexcept {} #endif private: -- cgit v1.2.3