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

Add support for defining error codes and adapt function bodys #1

Open
2 tasks
t-b opened this issue Mar 8, 2019 · 0 comments
Open
2 tasks

Add support for defining error codes and adapt function bodys #1

t-b opened this issue Mar 8, 2019 · 0 comments

Comments

@t-b
Copy link
Member

t-b commented Mar 8, 2019

  • Create errors.h and errors.rc/errors.r

Example:

#define MY_ERROR = "Error Message";
  • Output code of functions completely
// string JSON_GetType(variable jsonID, string path)
extern "C" int JSON_GetType(JSON_GetTypeParams *p)
{
  BEGIN_OUTER_CATCH

  LockGuard lock(mutex);
  err = Handler().JSON_GetType(p);

  END_OUTER_CATCH
}
@t-b t-b changed the title Add support for defining error codes and messages and operation names Add support for defining error codes and adapt function bodys Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant