Skip to content

Commit

Permalink
Update API's for 11.x Beta
Browse files Browse the repository at this point in the history
Provides backwards support for existing APIs
  • Loading branch information
QartemisT authored Jun 15, 2024
1 parent dbeb4e0 commit f43259e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions WagoAnalytics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ local isRetail = WOW_PROJECT_ID == (WOW_PROJECT_MAINLINE or 1)
do
local tostring, pairs, ipairs, debugstack, debuglocals, tIndexOf, tinsert, match =
tostring, pairs, ipairs, debugstack, debuglocals, tIndexOf, table.insert, string.match
local GetLocale, UnitFactionGroup, GetCurrentRegion, UnitAffectingCombat, InCombatLockdown, GetNumAddOns, GetAddOnInfo, CreateFrame, UnitClass, UnitLevel, UnitRace, GetSpecialization, GetSpecializationInfo =
GetLocale, UnitFactionGroup, GetCurrentRegion, UnitAffectingCombat, InCombatLockdown, GetNumAddOns, GetAddOnInfo, CreateFrame, UnitClass, UnitLevel, UnitRace, GetSpecialization, GetSpecializationInfo
local GetLocale, UnitFactionGroup, GetCurrentRegion, UnitAffectingCombat, InCombatLockdown, CreateFrame, UnitClass, UnitLevel, UnitRace, GetSpecialization, GetSpecializationInfo =
GetLocale, UnitFactionGroup, GetCurrentRegion, UnitAffectingCombat, InCombatLockdown, CreateFrame, UnitClass, UnitLevel, UnitRace, GetSpecialization, GetSpecializationInfo

local GetAddOnMetadata = C_AddOns and C_AddOns.GetAddOnMetadata or GetAddOnMetadata
local GetAddOnInfo = C_AddOns and C_AddOns.GetAddOnInfo or GetAddOnInfo
local GetNumAddOns = C_AddOns and C_AddOns.GetNumAddOns or GetNumAddOns

-- isSimple 3 state: True is simple, False is pcall, Nil is not simple
local function handleError(errorMessage, isSimple, errorObj)
Expand Down

0 comments on commit f43259e

Please sign in to comment.