Skip to content

Instantly share code, notes, and snippets.

@jasperla
Last active October 18, 2017 11:12
Show Gist options
  • Select an option

  • Save jasperla/4d1386c791321ed78c58d348490036af to your computer and use it in GitHub Desktop.

Select an option

Save jasperla/4d1386c791321ed78c58d348490036af to your computer and use it in GitHub Desktop.
#define db_print_sym_name(name, pr, tail) \
{ \
const char *tl; \
if (tail == NULL) { tl = "("; } else { tl = tail; }\
if (name == NULL) { ((*pr)("%p%s", name, tl)); } \
else { ((*pr)("%s%s", name, tl)); } \
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment