Originally Posted by Kanegasi
Macros aren't Lua, they're a simple set of conditions processed by a C function within WoW's UI. An arbitrary system made by Blizzard that's effectively just feeding a string into a parser.
|
Some clarification:
Yes, macros are fed into C code to run. The C code splits it into lines that are then fired back into the Lua environment using the EXECUTE_CHAT_LINE event. (See
ChatFrame.lua)
The lines going through all the
/cast commands actually do get run, but the block is in
CastSpellByName()'s C code, not the macro "parser".