Changes the name, icon, and/or body of a macro. After patch 4.3 then the numeric 'icon' argument has been replaced by 'iconTexture'.
Furthermore, the function always prepend 'Interface\Icons' to the 'iconTexture' string.
See also Macro functions.
index- Existing index of the macro (
name- New name for the macro (up to 16 characters); nil to keep an existing name (
iconTexture- name of icon texture; nil to keep an existing texture (
body- Body of the macro (up to 255 characters); nil to keep the existing body (
newIndex- Index at which the macro is now saved (may differ from input
indexif the macro's name was changed, as macros are saved in alphabetical order) (