NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
inlines.hpp
1#pragma once
2#include <types.h>
3
4namespace nw4r {
5namespace ut {
6
7 /// @brief Gets the smaller of the two given values.
8 template <typename T>
9 inline T Min(T a, T b) {
10 return (a > b) ? b : a;
11 }
12
13 /// @brief Gets the larger of the two given values.
14 template <typename T>
15 inline T Max(T a, T b) {
16 return (a < b) ? b : a;
17 }
18
19} // namespace ut
20} // namespace nw4r
Debugging library which includes various utilities used by the rest of nw4r.
Definition list.cpp:4
T Min(T a, T b)
Gets the smaller of the two given values.
Definition inlines.hpp:9
T Max(T a, T b)
Gets the larger of the two given values.
Definition inlines.hpp:15