How is this for a standalone bootstrap example? Comments and critiques are expected and would be welcomed because I intend to update the MapTables support (i.e library) add-on calls to AddonStub with this snippet if I can get a consensus that this code will work and work efficiently.
Lua Code:
--[[-------------------------------------------------------------------------------------------------------------------
Bootstrap code to either start or fail this add-on.
---------------------------------------------------------------------------------------------------------------------]]
local addon = MapTables
assert( not addon, "MapTables: This add-on is already loaded. Do NOT load add-ons multiple times!" )
addon = {}
MapTables = addon
assert( MapTables, "MapTables: The game failed to create a global control entry!" )
--[[-------------------------------------------------------------------------------------------------------------------
... And add-on initialization code continues on from here ...
---------------------------------------------------------------------------------------------------------------------]]
What do you all think?