mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-19 15:51:33 +00:00
![Carl Corcoran](/assets/img/avatar_default.png)
In the tree we have two copies of printf_stderr() with the comment, "Ideally this should be shared". This moves the function to a new exported header which can be the basis for other similar debugging utility functions. To include it, #include "mozilla/glue/Debug.h" A small concern with this is that printf_stderr() is in the global namespace, and could conflict if it's inadvertently included along with, for example, nsDebug.h which also defines this function. The warning in the comment at the top of the file attempts to mitigate this. Differential Revision: https://phabricator.services.mozilla.com/D13196 --HG-- extra : moz-landing-system : lando