Added a few words of explanation about macros

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47835 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Steve Murphy
2006-11-19 04:12:39 +00:00
parent b3867180cf
commit 322cb84896

View File

@@ -102,7 +102,9 @@ extension, and a subroutine. It has arguments like a subroutine
might. A macro call can be made within an extension, and the might. A macro call can be made within an extension, and the
individual statements there are executed until it ends. At this point, individual statements there are executed until it ends. At this point,
execution returns to the next statement after the macro call. Macros execution returns to the next statement after the macro call. Macros
can call other macros. And they work just like function calls. can call other macros. And they work just like function calls. In 1.2,
and 1.4, they are implemented underneath with the Macro() application.
In 1.6 and up, they are implemented with the Gosub() application.
Applications Applications
------------ ------------
@@ -981,7 +983,7 @@ Macros
A macro is defined in its own block like this. The arguments to the A macro is defined in its own block like this. The arguments to the
macro are specified with the name of the macro. They are then referred macro are specified with the name of the macro. They are then referred
to by that same name. A catch block can be specified to catch special to by that same name. A catch block can be specified to 'catch' special
extensions. extensions.