Described by taking the "extended_fcn" link in the output of help macro or somewhere in the macro section of the Stata Programming Reference PDF included in your Stata installation, and mentioned in passing in chapter 18 of the Stata User's Guide PDF.