mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 01:32:14 -05:00
23 lines
389 B
C++
23 lines
389 B
C++
/*
|
|
* Copyright (c) 2024, Andreas Kling <andreas@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibJS/Forward.h>
|
|
|
|
namespace Web::WebIDL {
|
|
|
|
extern bool g_enable_idl_tracing;
|
|
|
|
void log_trace_impl(JS::VM&, char const*);
|
|
|
|
inline void log_trace(JS::VM& vm, char const* function)
|
|
{
|
|
if (g_enable_idl_tracing)
|
|
log_trace_impl(vm, function);
|
|
}
|
|
|
|
}
|