#pragma once #include "irrt_typedefs.hpp" namespace { template T max(T a, T b) { return a > b ? a : b; } template T min(T a, T b) { return a > b ? b : a; } void nac3_assert(bool condition) { // Doesn't do anything (for now (?)) // Helps to make code self-documenting if (!condition) { // TODO: don't crash the program // TODO: address 0 on hardware might be writable? uint8_t* death = nullptr; *death = 0; } } }