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

Adds empty dbg calls #67

Closed
wants to merge 4 commits into from

Commits on Dec 28, 2019

  1. Added empty dbg calls, closes sharkdp#64

    dbg can now be called like dbg() with no arguments. Works by using the
    VA_ARGS to determine how many arguements have been passed in via dbg_x.
    Also works just fine if DBG_MACRO_DISABLE is defined.
    DerekCresswell authored and sharkdp committed Dec 28, 2019
    Configuration menu
    Copy the full SHA
    aae9bae View commit details
    Browse the repository at this point in the history
  2. Moved dbg(..) definition to avoid code duplication

    Seeing as the dbg(...) was the same whether disabled or not I've moved
    it beside the dbg_x() definition outside of the disable if.
    DerekCresswell authored and sharkdp committed Dec 28, 2019
    Configuration menu
    Copy the full SHA
    42d64b6 View commit details
    Browse the repository at this point in the history
  3. Added empty calls to tests

    Simply put some empty calls onto tests/tests.cpp an tests/example.cpp.
    Also for consistency I've updated the README.md to have the empty call
    in it.
    
    This should be all that is needed to implement empty calls. :)
    DerekCresswell authored and sharkdp committed Dec 28, 2019
    Configuration menu
    Copy the full SHA
    6e1c0dd View commit details
    Browse the repository at this point in the history
  4. clang-format

    sharkdp committed Dec 28, 2019
    Configuration menu
    Copy the full SHA
    cf26ccb View commit details
    Browse the repository at this point in the history