This attempts to complete what @Irvise started, in as little LOC as I could manage. Also some refactoring of repl_flag access through setters/getters since it was a bit messy otherwise.
This relies on a reasonably good optimizer that knows it can delete code blocks after if (false). Gcc & clang should have no trouble.
This attempts to complete what @Irvise started, in as little LOC as I could manage. Also some refactoring of
repl_flag
access through setters/getters since it was a bit messy otherwise.This relies on a reasonably good optimizer that knows it can delete code blocks after
if (false)
. Gcc & clang should have no trouble.