mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00:34 +00:00
improved ONLY_GCC46
This commit is contained in:
parent
a3137a3f7c
commit
d4df8a970c
@ -44,19 +44,13 @@ eVariation variation;
|
||||
*
|
||||
*/
|
||||
|
||||
#if ISSTEAM && ISLINUX
|
||||
#define ONLY_STEAMLINUX(x) x
|
||||
#else
|
||||
#define ONLY_STEAMLINUX(x)
|
||||
#endif
|
||||
|
||||
struct hyperpoint : array<ld, MAXMDIM> {
|
||||
hyperpoint() {}
|
||||
|
||||
#if MAXMDIM == 4
|
||||
constexpr hyperpoint(ld x, ld y, ld z, ld w) : array<ld, MAXMDIM> { ONLY_STEAMLINUX((array<ld, MAXMDIM>)) {x, y, z, w}} {
|
||||
constexpr hyperpoint(ld x, ld y, ld z, ld w) : array<ld, MAXMDIM> { ONLY_GCC46((array<ld, MAXMDIM>)) {x, y, z, w}} {
|
||||
#else
|
||||
constexpr hyperpoint(ld x, ld y, ld z, ld w) : array<ld, MAXMDIM> { ONLY_STEAMLINUX((array<ld, MAXMDIM>)) {x, y, z}} {
|
||||
constexpr hyperpoint(ld x, ld y, ld z, ld w) : array<ld, MAXMDIM> { ONLY_GCC46((array<ld, MAXMDIM>)) {x, y, z}} {
|
||||
#endif
|
||||
// self[0] = x; self[1] = y; self[2] = z;
|
||||
// if(MAXMDIM == 4) self[3] = w;
|
||||
|
@ -47,8 +47,11 @@
|
||||
#define ISSTEAM 0
|
||||
#endif
|
||||
|
||||
#if ISSTEAM
|
||||
#if GCC46
|
||||
#define override
|
||||
#define ONLY_GCC46(x) x
|
||||
#else
|
||||
#define ONLY_GCC46(x)
|
||||
#endif
|
||||
|
||||
#ifndef ISWEB
|
||||
|
Loading…
Reference in New Issue
Block a user