Przeglądaj źródła

core: Mark GetInstance() as deprecated

This way it's obvious that this function shouldn't be used in any future
code.
Lioncash 5 lat temu
rodzic
commit
5c4e237902
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/core/core.h

+ 1 - 1
src/core/core.h

@@ -120,7 +120,7 @@ public:
      * Gets the instance of the System singleton class.
      * @returns Reference to the instance of the System singleton class.
      */
-    static System& GetInstance() {
+    [[deprecated("Use of the global system instance is deprecated")]] static System& GetInstance() {
         return s_instance;
     }