mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-10 06:16:00 +00:00
rogueviz:: added some guards
This commit is contained in:
@@ -14,6 +14,10 @@
|
||||
#define CAP_RVSLIDES (CAP_TOUR && !ISWEB)
|
||||
#endif
|
||||
|
||||
#ifndef CAP_MODELS
|
||||
#define CAP_MODELS (!ISWEB)
|
||||
#endif
|
||||
|
||||
namespace rogueviz {
|
||||
using namespace hr;
|
||||
|
||||
@@ -367,6 +371,10 @@ namespace objmodels {
|
||||
for(Res r: results) res += r;
|
||||
return res;
|
||||
}
|
||||
#else
|
||||
template<class T> auto parallelize(long long N, T action) -> decltype(action(0,0)) {
|
||||
return action(0, N);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user