[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: determining line number
- From: Jeffrey Drake <wackysteak@...>
- Date: Sat, 12 Jun 2004 00:45:15 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I would like to create a custom print function that reports directly to
my gui, and one thing I would like is the line number of where it was
called.
I am told what I am after is the equivalent to __LINE__ in C.
The idea is so the output might be something like this:
Message(myTest.lua: 45): Task completed
or in more useful info:
Error(blah.lua:39): Expected list got string
I do not want to compromise speed if at all possible. Something that
happens just while printing would be best.
- - Jeff
"Reportedly, he remarked to one of his Christian missionary friends:
'What you teach us to do is admirable, but what you teach us to believe
is foolish'."
- - Referring to King Mongkut of Siam
http://en.wikipedia.org/wiki/Mongkut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFAyopb0noMGorKkKgRAlmIAJ9ckLTvstIlEnPNmNxolIrj023WygCfWv1j
//XaiNuVUYT8OH66wCQgwsQ=
=EvQV
-----END PGP SIGNATURE-----