mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Ensures assert
is completely excluded if NDEBUG.
This commit is contained in:
parent
ea7899f47d
commit
fb352a8d40
@ -51,9 +51,14 @@
|
||||
|
||||
// Sets the length of the next microcycle; if this is a debug build, also confirms
|
||||
// that the microcycle being adjusted is the one that it's permissible to adjust.
|
||||
#ifdef NDEBUG
|
||||
#define set_next_microcycle_length(x) \
|
||||
bus_program->microcycle.length = x
|
||||
#else
|
||||
#define set_next_microcycle_length(x) \
|
||||
assert(bus_program->microcycle.is_resizeable); \
|
||||
bus_program->microcycle.length = x
|
||||
#endif
|
||||
|
||||
template <class T, bool dtack_is_implicit, bool signal_will_perform> void Processor<T, dtack_is_implicit, signal_will_perform>::run_for(HalfCycles duration) {
|
||||
const HalfCycles remaining_duration = duration + half_cycles_left_to_run_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user