mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
AK: Unbreak building with extra debug macros
This commit is contained in:
parent
33138900de
commit
184b454e2f
Notes:
sideshowbarker
2024-07-19 03:02:43 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/184b454e2f1 Pull-request: https://github.com/SerenityOS/serenity/pull/3314
@ -57,7 +57,7 @@ MappedFile::MappedFile(const StringView& file_name)
|
||||
}
|
||||
|
||||
#ifdef DEBUG_MAPPED_FILE
|
||||
dbgprintf("MappedFile{%s} := { fd=%d, m_size=%u, m_map=%p }\n", file_name.characters(), fd, m_size, m_map);
|
||||
dbgprintf("MappedFile{%s} := { fd=%d, m_size=%zu, m_map=%p }\n", file_name.to_string().characters(), fd, m_size, m_map);
|
||||
#endif
|
||||
|
||||
close(fd);
|
||||
|
@ -41,7 +41,7 @@ void dump_all_stringimpls()
|
||||
{
|
||||
unsigned i = 0;
|
||||
for (auto& it : *g_all_live_stringimpls) {
|
||||
dbgprsize_tf("%u: \"%s\"\n", i, (*it).characters());
|
||||
dbgprintf("%u: \"%s\"\n", i, (*it).characters());
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,9 @@
|
||||
#include "RefCounted.h"
|
||||
#include "RefPtr.h"
|
||||
|
||||
#define WEAKABLE_DEBUG
|
||||
#ifndef WEAKABLE_DEBUG
|
||||
# define WEAKABLE_DEBUG
|
||||
#endif
|
||||
|
||||
namespace AK {
|
||||
|
||||
@ -64,7 +66,7 @@ public:
|
||||
WeakPtr<T> make_weak_ptr();
|
||||
|
||||
protected:
|
||||
Weakable() {}
|
||||
Weakable() { }
|
||||
|
||||
~Weakable()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user