1
0
mirror of https://github.com/luanti-org/minetestmapper.git synced 2025-10-21 12:15:51 +02:00

Move source files into folder

This commit is contained in:
sfan5
2025-02-18 15:45:14 +01:00
parent 1c16c40ccc
commit 527a56f22e
31 changed files with 40 additions and 32 deletions

21
src/util.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <string>
#include <iostream>
template<typename T>
static inline T mymax(T a, T b)
{
return (a > b) ? a : b;
}
template<typename T>
static inline T mymin(T a, T b)
{
return (a > b) ? b : a;
}
std::string read_setting(const std::string &name, std::istream &is);
std::string read_setting_default(const std::string &name, std::istream &is,
const std::string &def);