 const char*  err_msg;
  } ft_errors[] =

  #include &lt;freetype/fterrors.h&gt;
</code></pre></div></p>
<p>An alternative to using an array is a switch statement.
<div class="highlight"><pre><span></span><code>  #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       }
</code></pre></div></p>
<p>If you use <code>FT_CONFIG_OPTION_USE_MODULE_ERRORS</code>, <code>error_code</code> should be replaced wi