summaryrefslogtreecommitdiff
path: root/src/utils/general.cpp
blob: bbcd4dda8f0aa6373727cdc00fd542af9874216a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "general.hpp"

void stop()
{
	while (true) {}
}

unique_ptr<SmartString> floatToStr(float num, unsigned int width, unsigned int precision)
{
	auto str = make_unique<SmartString>(width + precision);
	dtostrf(num, width, precision, str->c_str);

	return str;
}