[C++] hide the m_codecStatePtr behind ifdefs to avoid overhead when p… by nbradac · Pull Request #1036 · aeron-io/simple-binary-encoding (original) (raw)
…recedence checking is disabled
The m_codecStatePtr is now only defined when SBE_ENABLE_PRECEDENCE_CHECKS is defined. The various setter/getter functions still exist when _CHECKS is not defined to keep the rest of the code simpler, but they do nothing and should be optimized away.