1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00
Commit Graph

50 Commits

Author SHA1 Message Date
Zeno Rogue
480916e4db added missing split_string to repo 2024-05-26 23:19:19 +02:00
Zeno Rogue
e9941d29d3 hstream_exception now can contain explanation 2024-03-23 21:19:04 +01:00
Zeno Rogue
4fbce2ae5a a debug function added 2023-12-17 17:47:05 +01:00
Zeno Rogue
845237c756
Merge pull request #343 from Quuxplusone/constexpr
Change `static const` to `static constexpr` wherever possible
2023-10-19 12:31:56 +02:00
Zeno Rogue
b617bc12a7 hprint:: added index_pointer_int 2023-09-14 17:36:07 +02:00
Arthur O'Dwyer
62629f3e70 Change static const to static constexpr wherever possible
Since we require C++11, most of these consts can be constexpr.

Two `static const ld` remain non-compile-time-evaluable because
they depend on the runtime `log` function. One `static const cld`
remains non-compile-time because `std::complex<T>` doesn't become
constexpr until C++14.
2023-08-23 09:47:28 -08:00
Zeno Rogue
fd1be4beb8
Merge pull request #341 from Quuxplusone/override
Consistently apply `override` (and not `virtual`) to overriding virtuals
2023-08-22 19:56:17 +02:00
Arthur O'Dwyer
28880f2985 Consistently apply override (and not virtual) to overriding virtuals
Three functions were missing `override`, triggering `-Wsuggest-override` on Clang.
Many functions had redundant `virtual ... override`.
2023-08-21 10:23:48 -07:00
Arthur O'Dwyer
10d0ed8900 Eliminate calls to sprintf
Apple Xcode has started giving `-Wdeprecated-declarations` warnings
for `sprintf`, and suggesting that people migrate to `snprintf` instead.
This is silly, but the warnings are spam and need to be silenced
somehow. Migrating to `snprintf` and/or `hr::format` is the path of
least resistance.
2023-08-21 10:18:44 -07:00
Arthur O'Dwyer
ced3bbcad4 Qualify calls to format
C++20 introduces `std::format` and we `using namespace std`,
so some of these would be ambiguous in C++20.
2023-08-21 10:18:44 -07:00
Zeno Rogue
a13ba9bdbe param_matrix 2023-08-08 17:20:39 +02:00
Zeno Rogue
554e9c5cfc kz for array 2023-06-21 15:09:46 +02:00
Zeno Rogue
d32b0855a0 kz added for shiftmatrix and shiftpoint 2023-01-06 00:24:58 +01:00
Zeno Rogue
dd0c1e6b3d print hyperpoint now prints MDIM dimensions 2022-08-07 03:16:24 +02:00
Zeno Rogue
2f7a6194a6 hprint:: print template for sets 2022-07-17 14:41:57 +02:00
Zeno Rogue
dabc227cbe hprint:: some extra functions 2022-07-12 14:46:30 +02:00
Zeno Rogue
86d1f109bc mapstreams:: now work with sstream too 2022-06-16 23:06:49 +02:00
Zeno Rogue
306a5b6c0f scanline_noblank function 2022-04-07 20:54:33 +02:00
Zeno Rogue
d6bf35201c flush method on hstream 2022-01-08 18:54:08 +01:00
Zeno Rogue
7c9c599e4c index_pointer now produces better sequences of chars 2021-08-04 18:25:52 +02:00
Zeno Rogue
f996104074 improved timestamps 2021-07-31 15:12:06 +02:00
Arthur O'Dwyer
a2989a3d39 Add explicit and override consistently in hprint.cpp. NFCI. 2021-07-11 17:31:05 -04:00
Zeno Rogue
82b8b02a36 hprint now can print maps 2021-06-17 09:44:48 +02:00
Zeno Rogue
087c815372 hprint:: added as_nice_cstring 2021-05-23 16:00:50 +02:00
Zeno Rogue
0f767e16b6 XLAT refactor continued 2021-05-23 16:00:50 +02:00
Zeno Rogue
10d2f932ce fixed some warning/errors 2020-08-03 19:49:54 +02:00
Zeno Rogue
3505f17460 redone modecode 2020-08-02 12:55:37 +02:00
Zeno Rogue
82f32607e6 MAJOR CHANGE: replaced (transmatrix,band_shift) pair with shiftmatrix 2020-07-28 22:06:14 +02:00
Zeno Rogue
50bb01b7e2 fixed a bug with saving string 2020-07-12 21:39:34 +02:00
Zeno Rogue
b58c491f4d fixup to cellname debug 2020-07-07 22:31:31 +02:00
Zeno Rogue
6f2e7e90d5 expansion analyzer now can use libgmp for better analysis 2020-07-05 00:55:56 +02:00
Zeno Rogue
89585f004b fixed some guards (in progress) 2020-07-03 14:42:33 +02:00
Zeno Rogue
3a8a3cf035 added kz(vector) 2020-05-08 20:26:23 +02:00
Zeno Rogue
ea8a3ea7d2 nicer print for cld 2020-05-01 17:27:13 +02:00
Zeno Rogue
3c82c4d9e3 print cld's 2020-05-01 17:22:30 +02:00
Zeno Rogue
93f1090891 vertex debug 2020-04-21 23:37:25 +02:00
Zeno Rogue
d9e4ba62ec lalign function in hprint 2020-03-29 12:01:29 +02:00
Zeno Rogue
f84f51e972 new utility functions: (de)serialize, as_cstring 2020-03-07 04:47:10 +01:00
Zeno Rogue
9d2d7fbde8 fixed a warning on hwrite string 2020-01-29 18:21:35 +01:00
Zeno Rogue
62990a765e shstream:: initialize from a string 2020-01-28 17:58:55 +01:00
Zeno Rogue
88c71d8f21 hwrite/hread string now works with long strings (over 255 characters) 2020-01-25 19:21:56 +01:00
Zeno Rogue
e5d99582ee print hrmap* 2019-12-08 20:07:02 +01:00
Zeno Rogue
9c61d80248 indenter:: default value for 'b' 2019-11-15 02:20:46 +01:00
Zeno Rogue
075278adea cell/heptagon pointers are now indexed when printed 2019-10-12 11:25:56 +02:00
Zeno Rogue
bc789e8c18 racing:: fixed racing to use modecode_t not int 2019-09-27 17:34:42 +02:00
Zeno Rogue
973d8cb451 fixed some warnings 2019-09-13 18:53:12 +02:00
Zeno Rogue
9647cbd47e added #include hyper.h to all cpp files 2019-09-12 22:50:16 +02:00
Zeno Rogue
98ddecc63e removed init.cpp 2019-09-12 22:50:16 +02:00
Zeno Rogue
86d3e8f4b1 fixed non-extern variable 2019-09-12 22:50:15 +02:00
Zeno Rogue
cfecf4a80d added missing hprint.cpp 2019-09-12 22:50:13 +02:00