Switch from using a macro to capture __FILE__,__LINE__ to using __builtin_FILE(),__builtin_LINE(). Make the event an explicit argument, instead of assuming it is a variable named `event`. Move the implementation out of line.