Page 1 of 1 1
Topic Options
#214170 - 2022-09-26 03:51 PM Macro for the current function name
morganw Offline
Fresh Scripter

Registered: 2015-10-20
Posts: 14
Loc: UK
A macro which expands to the current function name would be useful for logging function entry and exit points, or for anything that needs to generate a message about the function usage.

 Code:
? "Entered function @FUNCTION"
? Deprecated(@FUNCTION)
? "Leaving function @FUNCTION"

Top
#214172 - 2022-09-30 05:26 PM Re: Macro for the current function name [Re: morganw]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Nice idea, thanks for the suggestion!
I'll put this on the list for the next update.

Top
#214191 - 2022-10-18 01:00 PM Re: Macro for the current function name [Re: Ruud van Velsen]
morganw Offline
Fresh Scripter

Registered: 2015-10-20
Posts: 14
Loc: UK
I'm presuming this is where @INUDF appeared from.
Thanks!

Top
#214192 - 2022-10-19 02:16 PM Re: Macro for the current function name [Re: morganw]
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Yup, you've guessed it :-)

Thanks again for the suggestion!

Top
Page 1 of 1 1


Moderator:  Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 370 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.236 seconds in which 0.175 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org