mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
The global wipe is ours only until an addon declares its own: whoever writes _G.wipe last wins, with no error. RegisterGlobalFunction mirrors every global it binds into _G.ClassicAPI at registration, before FrameXML and every addon load, so ClassicAPI.wipe is always our table.wipe C function. The nine embedded files that call the bare global now take `local wipe = ClassicAPI.wipe;` and list it as their difference from retail: ScrollBoxListView, ScrollUtil, Menu, CallbackRegistry, MixinUtil, SecureTypes and the three DebugTools table inspector files. Files that read table.wipe, as their retail sources do, are unchanged. The global stays for third-party code.