We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to change the definition from this pattern:
#ifdef ZSOCK_NOCHECK #define zsock_new(t) zsock_new_(t, NULL, 0) #else #define zsock_new(t) zsock_new_(t, __FILE__, __LINE__) #endif zsock_t *zsock_new_(int type, const char *fn, int ln);
to something more like this:
zsock_t *zsock_new(int type); #if !defined(ZSOCK_NOCHECK) // double negative - would like to use ZSOCK_CHECK instead. inline void zsock_new__checked(int type, const char *fn, int ln) { zsock_t *ret = zsock_new(type); zsock_register(ret, fn, ln); return ret; } #define zsock_new(t) zsock_new__checked(t, __FILE__, __LINE) #endif
The text was updated successfully, but these errors were encountered:
Sure, sounds good. On Feb 22, 2015 2:42 PM, "twhittock" notifications@github.com wrote:
I'd like to change the definition from this pattern: #ifdef ZSOCK_NOCHECK #define zsock_new(t) zsock_new_(t, NULL, 0) #else #define zsock_new(t) zsock_new_(t, FILE, LINE) #endifzsock_t *zsock_new_(int type, const char *fn, int ln); to something more like this: zsock_t *zsock_new(int type); #if !defined(ZSOCK_NOCHECK) // double negative - would like to use ZSOCK_CHECK instead.inline void zsock_new__checked(int type, const char *fn, int ln) { zsock_t *ret = zsock_new(type); zsock_register(ret, fn, ln); return ret; } #endif — Reply to this email directly or view it on GitHub #935.
#ifdef ZSOCK_NOCHECK #define zsock_new(t) zsock_new_(t, NULL, 0) #else #define zsock_new(t) zsock_new_(t, FILE, LINE) #endifzsock_t *zsock_new_(int type, const char *fn, int ln);
zsock_t *zsock_new(int type);
#if !defined(ZSOCK_NOCHECK) // double negative - would like to use ZSOCK_CHECK instead.inline void zsock_new__checked(int type, const char *fn, int ln) { zsock_t *ret = zsock_new(type); zsock_register(ret, fn, ln); return ret; } #endif
— Reply to this email directly or view it on GitHub #935.
Sorry, something went wrong.
c48eb01
No branches or pull requests
I'd like to change the definition from this pattern:
to something more like this:
The text was updated successfully, but these errors were encountered: