From de8e999981e8259e07fea41009cc578fff242753 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sun, 24 Jul 2016 16:53:37 -0400 Subject: [PATCH] Added support for tekDebug --- xanErrorDevourer.lua | 5 +++++ xanErrorDevourer.toc | 1 + 2 files changed, 6 insertions(+) diff --git a/xanErrorDevourer.lua b/xanErrorDevourer.lua index 225a459..9817c2a 100644 --- a/xanErrorDevourer.lua +++ b/xanErrorDevourer.lua @@ -12,6 +12,11 @@ local prevClickedBar local xED_Frame = CreateFrame("frame","xanErrorDevourer",UIParent) xED_Frame:SetScript("OnEvent", function(self, event, ...) if self[event] then return self[event](self, event, ...) end end) +local debugf = tekDebug and tekDebug:GetFrame("xanErrorDevourer") +local function Debug(...) + if debugf then debugf:AddMessage(string.join(", ", tostringall(...))) end +end + --[[------------------------ ENABLE --------------------------]] diff --git a/xanErrorDevourer.toc b/xanErrorDevourer.toc index a7d0fb7..725741d 100644 --- a/xanErrorDevourer.toc +++ b/xanErrorDevourer.toc @@ -3,6 +3,7 @@ ## Notes: This addon devours errors. Nom-Nom-Nom Errors! ## Author: Xruptor ## Version: 1.9 +## OptionalDeps: tekDebug ## SavedVariables: xErrD_DB, xErrD_CDB errorList.lua -- 1.7.9.5