summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-18 18:15:16 -0400
committerLioncash <mathew1800@gmail.com>2018-07-18 18:18:27 -0400
commit10d2ab80989e1362fe9cc206e0708d7aeeda5d3a (patch)
treee3f4f9ea584b2637c7f3ccccaef5df2e4df3bfa7 /src/core/core.h
parent3a4841e40302d50b21064be7bc248b249ac88467 (diff)
core: Make System's default constructor private
This makes it a compilation error to construct additional instances of the System class directly, preventing accidental wasteful constructions over and over.
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/core.h b/src/core/core.h
index f90f085ad..c6f69f001 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -168,6 +168,8 @@ public:
}
private:
+ System();
+
/// Returns the currently running CPU core
Cpu& CurrentCpuCore();