What's my line [number]?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Greg Bryant

    #1

    What's my line [number]?

    Is there a global constant somewhere that will give me the line number
    (useful for debug tracing?)

    Thanks,
    Greg
  • Chris Hope

    #2
    Re: What's my line [number]?

    Greg Bryant wrote:
    [color=blue]
    > Is there a global constant somewhere that will give me the line number
    > (useful for debug tracing?)[/color]

    __LINE__

    And, equally useful, __FILE__

    --
    Chris Hope
    The Electric Toolbox - http://www.electrictoolbox.com/

    Comment

    • Greg Bryant

      #3
      Re: What's my line [number]?

      Chris Hope <chris@electric toolbox.com> wrote in news:1084743839 _40774
      @news.athenanew s.com:
      [color=blue]
      > Greg Bryant wrote:
      >[color=green]
      >> Is there a global constant somewhere that will give me the line number
      >> (useful for debug tracing?)[/color]
      >
      > __LINE__
      >
      > And, equally useful, __FILE__
      >[/color]

      Ah - just like C++ pp vbls, how incredibly handy.

      Thanks.

      Comment

      Working...