Shop OBEX P1 Docs P2 Docs Learn Events
Getting source line number — Parallax Forums

Getting source line number

WhaleyWhaley Posts: 6
edited 2010-07-14 13:21 in Propeller 1
In the C language, there is the __LINE__ macro that can be used to embed line number of the present source line into strings, and this is often used for debug purposes to disambiguate which line in the code generated the debug without having to do this manually.

Does anyone know if there is a similar feature in the Spin language to get the source line number?

Thanks.


·

Comments

  • KyeKye Posts: 2,200
    edited 2010-07-14 13:13
    As of right now in the propeller tool no. However Brad may be willing to add that to BST.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • WhaleyWhaley Posts: 6
    edited 2010-07-14 13:21
    Ok, thanks.

    I'll do without it for now, but sometimes knowing that a feature is not implemented saves a lot of time hunting around looking for it - so thanks for your reply.

    David.
Sign In or Register to comment.