ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

LibCore: Several bug fixes for EventLoopImplementationWindows

Open stasoid opened this issue 1 month ago • 2 comments

Picture for commit "LibCore: Make single-shot timer objects manually reset on Windows": image

Some useful logging capabilities
// AK/Format.h

#define RED(str)     "\33[91m" str "\33[0m"
#define GREEN(str)   "\33[92m" str "\33[0m"
#define BLUE(str)    "\33[94m" str "\33[0m"
#define MAGENTA(str) "\33[95m" str "\33[0m"
#define CYAN(str)    "\33[96m" str "\33[0m"
#define DCYAN(str)   "\33[36m" str "\33[0m"

namespace AK { StringView process_name_for_logging(); }

template<typename... Parameters>
void pdbgln(const char* proc_name, CheckedFormatString<Parameters...>&& fmtstr, Parameters const&... parameters)
{
    if (proc_name == AK::process_name_for_logging())
        dbgln(move(fmtstr), parameters...);
}

stasoid avatar Jan 08 '25 17:01 stasoid