commit 6705bdfe95f7d8d042b814867427be672ed4c633 parent 26c3951678ef2ede7c59dea437703dda4bcf4a06 Author: Christos Margiolis <christos@margiolis.net> Date: Tue, 14 Apr 2020 20:53:10 +0300 changed #define to constexpr Diffstat:
M | bin/graphcurses | | | 0 | |
M | obj/main.o | | | 0 | |
M | obj/plane.o | | | 0 | |
M | src/plane.h | | | 12 | ++++++------ |
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/bin/graphcurses b/bin/graphcurses Binary files differ. diff --git a/obj/main.o b/obj/main.o Binary files differ. diff --git a/obj/plane.o b/obj/plane.o Binary files differ. diff --git a/src/plane.h b/src/plane.h @@ -7,12 +7,12 @@ #include <matheval.h> #include <ncurses.h> -#define XMIN_PLANE -2.0f*M_PI -#define XMAX_PLANE 2.0f*M_PI -#define YMIN_PLANE -M_PI -#define YMAX_PLANE M_PI -#define XSCALE_PLANE 1.0f -#define YSCALE_PLANE 1.0f +constexpr float XMIN_PLANE = -2.0f*M_PI; +constexpr float XMAX_PLANE = 2.0f*M_PI; +constexpr float YMIN_PLANE = -M_PI; +constexpr float YMAX_PLANE = M_PI; +constexpr float XSCALE_PLANE = 1.0f; +constexpr float YSCALE_PLANE = 1.0f; class Plane {