Re: not calling function at run time ..

Discussion in 'C Programming' started by Derk Gwen, Jun 24, 2003.

  1. Derk Gwen

    Derk Gwen Guest

    # I am using DBG at many places in the code . Now Just for testing I want
    # not to call this function at run time.
    # How to do it without commenting 10000s of places ..

    #define DBG (void)

    and ignore any annoying warnings about expressions evaluated but not used. This will
    preserve any side effects; if there are no side effects, an optimiser's dead code
    elimination will delete all the code.

    --
    Derk Gwen http://derkgwen.250free.com/html/index.html
    But I do believe in this.
    Derk Gwen, Jun 24, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paras Sharma

    not calling function at run time ..

    Paras Sharma, Jun 24, 2003, in forum: C++
    Replies:
    1
    Views:
    832
    Victor Bazarov
    Jun 24, 2003
  2. Mark A. Odell

    Re: not calling function at run time ..

    Mark A. Odell, Jun 24, 2003, in forum: C Programming
    Replies:
    4
    Views:
    1,169
    Mark A. Odell
    Jun 24, 2003
  3. Wictory

    Re: not calling function at run time ..

    Wictory, Jun 24, 2003, in forum: C Programming
    Replies:
    0
    Views:
    923
    Wictory
    Jun 24, 2003
  4. Pierre Yves
    Replies:
    2
    Views:
    482
    Pierre Yves
    Jan 10, 2008
  5. Replies:
    3
    Views:
    1,997
    Steven D'Aprano
    Jul 25, 2009
Loading...

Share This Page