A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/clibs/debug below:

clibs/debug: Conditional debug logging for C

debug

Conditional debug logging for C

install
$ clib install debug
usage
#include "debug.h"

debug_init(app)
debug_init(connection)
debug_init(error)

debug_t app_debug;
debug_t conn_debug;
debug_t err_debug;

int
main (void) {
  app_debug = debug_get(app);
  conn_debug = debug_get(connection);
  err_debug = debug_get(error);

  app_debug("starting application '%s'", "wooooo");

  // more logic later..
  return 0;
}
$ DEBUG=app ./program
app - starting application 'wooooo'
license

MIT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4