mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-16 02:58:05 +00:00
moved all the HyperRogue stuff except RogueViz to namespace 'hr' -- useful when using hr as a library
This commit is contained in:
3
util.cpp
3
util.cpp
@@ -3,6 +3,8 @@
|
||||
|
||||
// basic utility functions
|
||||
|
||||
namespace hr {
|
||||
|
||||
long double sqr(long double x) { return x*x; }
|
||||
string its(int i) { char buf[64]; sprintf(buf, "%d", i); return buf; }
|
||||
string fts(float x) { char buf[64]; sprintf(buf, "%4.2f", x); return buf; }
|
||||
@@ -114,3 +116,4 @@ void profile_info() {
|
||||
int whateveri, whateveri2;
|
||||
|
||||
purehookset hooks_tests;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user