Wanting to create an error handling function, I want it to return the line without having to pass an int value for it. I've seen functions given to me in books and so forth do it, but I have no idea how to get that value.
ChaseRLewis -3
Junior Poster in Training
Recommended Answers
Jump to PostWhat do you mean by "without having to pass an int value for it"? Can you give an example of the kind of output you're looking for?
There is the macro __LINE__ which gets replaced with the current line number, but it's an integer.
Jump to Post>> There is the macro __LINE__ which gets replaced with the current line number, but it's an integer.
that's the recommended way to do this.Your debugger done this using something called
debug symbolic information.In other words it's a symbol , where it consists a tuple
for each line in …
All 6 Replies
Fbody 682
Posting Maven Featured Poster
ChaseRLewis -3
Junior Poster in Training
NicAx64 76
Posting Pro
ChaseRLewis -3
Junior Poster in Training
mike_2000_17 2,669
21st Century Viking Team Colleague Featured Poster
ChaseRLewis -3
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.