API GetNumMacroIcons

Returns the number of possible macro icons. numIcons = GetNumMacroIcons;

Returns

 * numIcons : Integer - Number of available macro icons.

Example
local numIcons = GetNumMacroIcons for i=1,numIcons do DEFAULT_CHAT_FRAME:AddMessage(string.format("Icon %d: %s",i,GetMacroIconInfo(i))); end

Result
Outputs the IDs and texture names for all available macro icons to the default chat frame.