// AUTO-GENERATED FILE, MOVE TO 'gh_fix' FOLDER PREVENT OVERWRITING!!!!!

#include <r3/binders/auto.h>
#include <gh_global.h>

extern "C" {

// 0043e1d0
/* Allocate error manager system numbers */

byte Erm_fn_ucInitErrMsg(void)

{
  byte RVar1;
  tdstLastErrorInfo *pdVar2;
  int iVar2;

  RVar1 = g_ucErmNbOfModule;
  if (g_ucErmNbOfModule == 0) {
    for (size_t i = 0; i < std::size(g_stErmTheLastErrorInfo); i++) {
      g_stErmTheLastErrorInfo[i].lastErr = 0;
      g_stErmTheLastErrorInfo[i].ulChannelId = 0;
    }
  }
  g_ucErmNbOfModule = g_ucErmNbOfModule + 1;
  return RVar1;
}
}
