By adding enums to debuggers are able to decode the value underneath to an understandable form. This saves time when developing or debugging.
This patch introduces an enum for ImBuf.flags. ImBuf is used in CPP-code so we needed a mechanism to support C-type flags in CPP.
The `BLI_ENUM_FLAG_OPERATORS` macro generates CPP-operations for a given enum.