rnative to using an array is a switch statement.
<div class="codehilite"><pre><span></span>  #undef FTERRORS_H_
  #define FT_ERROR_START_LIST     switch ( error_code ) {
  #define FT_ERRORDEF( e, v, s )    case v: return s;
  #define FT_ERROR_END_LIST       }
</pre></div></p>
<p>If you use <code>FT_CONFIG_OPTION_USE_MODULE_ERRORS</code>, <code>error_code</code> should be replaced with <code>FT_ERROR_BASE(error_code)</code> in the last example.</p>
<h2 id="ft_error_string">FT_Error_String<a class="headerlink