[asterisk-users] Macro vs sub

Jonas Kellens jonas.kellens at telenet.be
Tue Jan 17 04:57:38 CST 2012


Hello list,

can I conclude that it is better to use sub's in stead of macro's ?

I read the following in an Asterisk-book :

GoSub() works in a different manner from Macro(), though, in that it 
doesn't have the stack space requirements, so
it nests effectively. Essentially, GoSub() acts like Goto() with a 
memory of where it came from.

Is it then not better to use a method that does not stack ?!


Kind regards,

Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120117/09de25e8/attachment.htm>


More information about the asterisk-users mailing list