core: rename mbgl namespace to mln (#4487)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2026-08-14 23:25:20 +02:00
committed by GitHub
parent 836b862984
commit 550f64be22
1970 changed files with 8931 additions and 8967 deletions

View File

@@ -7,14 +7,14 @@
// initialized by the platform at linking time.
#ifndef NDEBUG
#define MBGL_CHECK_ERROR(cmd) \
([&]() { \
struct __MBGL_CHECK_ERROR { \
~__MBGL_CHECK_ERROR() noexcept(false) { \
mbgl::platform::glCheckError(#cmd, __FILE__, __LINE__); \
} \
} __MBGL_CHECK_ERROR; \
return cmd; \
#define MBGL_CHECK_ERROR(cmd) \
([&]() { \
struct __MBGL_CHECK_ERROR { \
~__MBGL_CHECK_ERROR() noexcept(false) { \
mln::platform::glCheckError(#cmd, __FILE__, __LINE__); \
} \
} __MBGL_CHECK_ERROR; \
return cmd; \
}())
#else
#define MBGL_CHECK_ERROR(cmd) (cmd)
@@ -22,7 +22,7 @@
struct __GLsync;
namespace mbgl {
namespace mln {
namespace platform {
using GLbitfield = unsigned int;
@@ -557,4 +557,4 @@ void glCheckError(const char* cmd, const char* file, int line);
#endif
} // namespace platform
} // namespace mbgl
} // namespace mln

View File

@@ -4,7 +4,7 @@
#include <memory>
namespace mbgl {
namespace mln {
namespace platform {
#define DECLARE_MAPLIBRE_SETTING(name, value) constexpr const char* name = "maplibre_" #value
@@ -46,4 +46,4 @@ private:
};
} // namespace platform
} // namespace mbgl
} // namespace mln

View File

@@ -1,6 +1,6 @@
#pragma once
namespace mbgl {
namespace mln {
namespace platform {
/// Called when a thread is created
@@ -10,4 +10,4 @@ void attachThread();
void detachThread();
} // namespace platform
} // namespace mbgl
} // namespace mln

View File

@@ -2,7 +2,7 @@
#include <chrono>
namespace mbgl {
namespace mln {
namespace platform {
// Returns the current time. Abstracted because some platforms
@@ -10,4 +10,4 @@ namespace platform {
std::chrono::time_point<std::chrono::system_clock, std::chrono::seconds> now();
} // namespace platform
} // namespace mbgl
} // namespace mln