aboutsummaryrefslogtreecommitdiff
path: root/src/NDS.h
diff options
context:
space:
mode:
authorJesse Talavera-Greenberg <jesse@jesse.tg>2023-12-06 09:12:56 -0500
committerNadia Holmquist Pedersen <nadia@nhp.sh>2023-12-08 17:19:00 +0100
commit644d190e985521fc337b0612391de2c3fd679340 (patch)
treec9f6090b0f4eb7ab37710f79e6ae4df54b4fc904 /src/NDS.h
parentf4377e4f0f512f02805994e51c2e95a0022ff1f7 (diff)
Add stubs for `NDS::IsJITEnabled` and `SetJITArgs` for when the JIT is excluded
Diffstat (limited to 'src/NDS.h')
-rw-r--r--src/NDS.h3
1 files changed, 3 insertions, 0 deletions
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<JITArgs> args) noexcept;
+#else
+ [[nodiscard]] bool IsJITEnabled() const noexcept { return false; }
+ void SetJITArgs(std::optional<JITArgs> args) noexcept {}
#endif
private: