mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-24 16:33:47 +01:00
22 lines
391 B
C++
22 lines
391 B
C++
#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);
|