common.lua

The common library is a simple Lua file that includes other libraries that are the most often used in addons. This is a simple way for addons to include most of the other libraries in a single go rather than cluttering the top of their file with a bunch of require statements.

The common library also includes a helpful 'switch' function to mimic C++ style switch statements within Lua.