Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verification chaining should call the error init code #157

Open
ddeclerck opened this issue Jun 15, 2022 · 0 comments
Open

Verification chaining should call the error init code #157

ddeclerck opened this issue Jun 15, 2022 · 0 comments

Comments

@ddeclerck
Copy link
Collaborator

Generated verification code should be embedded in error initialization/management code (or a variation of it), as follows:

#ifdef FLG_MULTITHREAD
  init_erreur(irdata);
  if (setjmp(irdata->jmp_bloq) != 0) {
    return irdata->discords;
  }
  /* verification code */
  return irdata->discords;
#else
  init_erreur();
  if (setjmp(jmp_bloq) != 0) {
    return discords;
  }
  /* verification code */
  return discords;
#endif /* FLG_MULTITHREAD */
}

For now, this is done using wrappers in static C files.

Alternatively (preferably), we should just use a better error handling mechanism.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant