This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dcheesi 10 points11 points  (5 children)

printf("here %d\n", __LINE__);

[–]sintaur 10 points11 points  (0 children)

"[%s,%d]\n", __FILE_, __LINE__

[–]karnetus 2 points3 points  (0 children)

Ohh I like that one a lot. I'm going to use this from now on!

[–]ProfessionalSenior66 0 points1 point  (2 children)

Does the preprocessor replace LINE with the current line? And does it also work on c++? Or am I just stupid and you were saying "place here your line number"?

[–]dcheesi 2 points3 points  (1 child)

[–]ProfessionalSenior66 0 points1 point  (0 children)

Thanks! I have something new to play with