With debug builds of the Photon client this macro will call debugReturn(), if the passed debug level is of the same or a higher priority than the one returned by getDebugOutputLevel(). In case of a call to debugReturn() it will pass a nicely formatted string consisting of the debug message, a timestamp of the calling time and the filename, function name and line number of the code, from which it has been called. With release builds this macro won't add any code to the resulting binary and therefor not do anything at all.
- Parameters
-
debugLevel | the debug output level of the message, which in combination with the level, which is passed to setDebugOutputLevel() will determine, if the message will be passed to debugReturn() or not |
... | the debug format string + optional arguments (format specifiers for optional arguments work the same way like in the printf family of functions) |
- See also
- getDebugOutputLevel(), setDebugOutputLevel()