cast.hpp helper

I was tired of manually bounds-checking my integer casts.
This commit is contained in:
PJB3005
2026-07-25 15:26:15 +02:00
parent 226a1fc482
commit a6c4419da6
3 changed files with 63 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "helpers/cast.hpp"
#include "global.h"
namespace dusk::helpers::cast::_impl {
void overrun_high() {
CRASH("bounded cast overran!");
}
void overrun_low() {
CRASH("bounded cast overran!");
}
} // namespace dusk::helpers::cast::_impl