Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread Richard Lynch
On Tue, January 31, 2006 6:20 am, Andrei wrote: > For debugging purposes I want to send to a function the line and file > where it is called. The problem is that I want these parameters to be > added to function as default parameters (changing all function calls > would not be an option for m

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Thank you very much David Andrei David Grant wrote: Andrei, http://php.net/manual/en/function.debug-backtrace.php David Andrei wrote: Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be add

Re: [PHP] Question about C++ like macros on PHP

2006-01-31 Thread David Grant
Andrei, http://php.net/manual/en/function.debug-backtrace.php David Andrei wrote: > > Hi list, > > For debugging purposes I want to send to a function the line and > file where it is called. The problem is that I want these parameters to > be added to function as default parameters (changi

[PHP] Question about C++ like macros on PHP

2006-01-31 Thread Andrei
Hi list, For debugging purposes I want to send to a function the line and file where it is called. The problem is that I want these parameters to be added to function as default parameters (changing all function calls would not be an option for me) function my_func( $param, $line = __LINE_