libsbml-draw
min_max.h
Go to the documentation of this file.
1 /* MIT License
2  */
3 
4 //== FILEDOC =========================================================================
5 
10 //== BEGINNING OF CODE ===============================================================
11 
12 #ifndef __SBNW_MIN_MAX_H_
13 #define __SBNW_MIN_MAX_H_
14 
15 //== INCLUDES ========================================================================
16 
17 #include "SagittariusCore.h"
18 
19 //-- C++ code --
20 #ifdef __cplusplus
21 
22 namespace LibsbmlDraw {
23 
24  inline Real min(const Real x, const Real y) {
25  return x < y ? x : y;
26  }
27 
28  inline Real max(const Real x, const Real y) {
29  return x > y ? x : y;
30  }
31 
32 }
33 
34 #endif
35 
36 #endif
SAGITTARIUS_REAL Real
Make Real visible to C. Consider letting Real lie in top namespace.
Definition: SagittariusCommon.h:112
First file included.