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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user