View Single Post
06/25/14, 05:12 PM   #2
farangkao
 
farangkao's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 59
Post

As far as i know it's not there, however...

you can use the trick to check for new Functions or Globals (introduced in a certain version)

for example:
Lua Code:
  1. function GetAPIVersion()
  2.   if GetTradingHouseListingItemLink then return 10007 end  
  3.   return 10003
  4. end
I've not tested this example code (just in my mind), basically if a function doesn't exists it returns nil, and therefore the "if" statement fails and goes to the next line.