MyraMath
eprintf.h
Go to the documentation of this file.
1 // ========================================================================= //
2 // This file is part of MyraMath, copyright (c) 2014-2019 by Ryan A Chilton //
3 // and distributed by MyraCore, LLC. See LICENSE.txt for license terms. //
4 // ========================================================================= //
5 
6 #ifndef MYRAMATH_UTILITY_EPRINTF_H
7 #define MYRAMATH_UTILITY_EPRINTF_H
8 
14 #include <myramath/MYRAMATH_EXPORT.h>
15 #include <stdexcept>
16 #include <string>
17 
18 namespace myra {
19 
21 // usage: if (i > max) throw eprintf("Out of bounds, %d > %d", i, max);
22 MYRAMATH_EXPORT std::runtime_error eprintf(const char* format, ...);
23 
24 } // namespace myra
25 
26 #endif
Definition: syntax.dox:1