static void maybeUnregisterAndCloseFile(FILE *&f) {
  if (!f)
    return;

  MozillaUnRegisterDebugFILE(f);
  fclose(f);
  f = nullptr;
}
Пример #2
0
static void
maybeUnregisterAndCloseFile(FILE*& aFile)
{
  if (!aFile) {
    return;
  }

  MozillaUnRegisterDebugFILE(aFile);
  fclose(aFile);
  aFile = nullptr;
}