summaryrefslogtreecommitdiff
path: root/src/utils/general.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-15 12:33:52 +0100
committerHampusM <hampus@hampusmat.com>2022-02-15 12:33:52 +0100
commitbcdce9633dc351d3bc7f347a165348b8fab87cd9 (patch)
tree88c2f5d8f0c5fac2bca28e4b543e5209f3bc98fb /src/utils/general.hpp
parent917adc6a2b6b166e37fc3d4f94b41488f0c245a5 (diff)
refactor: reorganize files & improve classes
Diffstat (limited to 'src/utils/general.hpp')
-rw-r--r--src/utils/general.hpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/utils/general.hpp b/src/utils/general.hpp
deleted file mode 100644
index dbdbdfc..0000000
--- a/src/utils/general.hpp
+++ /dev/null
@@ -1,36 +0,0 @@
-#pragma once
-
-#include "memory.hpp"
-#include "smart_string.hpp"
-
-/**
- * Stops code execution.
- */
-void stop();
-
-/**
- * Converts a double number to a string.
- *
- * @param num A double number
- * @param width The desired double width
- * @param precision The desired double precision
- * @returns The double as a string.
- */
-UniquePtr<SmartString> doubleToStr(double num, unsigned int width = 3,
- unsigned int precision = 2);
-
-/**
- * Converts a integer to a string.
- *
- * @param num A number
- * @returns The number as a string.
- */
-UniquePtr<SmartString> intToStr(int num);
-
-/**
- * Converts a unsigned integer to a string.
- *
- * @param num A number
- * @returns The number as a string.
- */
-UniquePtr<SmartString> uintToStr(unsigned int num);