core: rename mbgl directories to mln (#4511)

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-22 20:50:14 +02:00
committed by GitHub
parent 06fcf13d42
commit 2a8ebc4906
1924 changed files with 10489 additions and 10489 deletions

37
include/mln/util/util.hpp Normal file
View File

@@ -0,0 +1,37 @@
#pragma once
#ifndef NDEBUG
#include <thread>
#define MBGL_STORE_THREAD(tid) const std::thread::id tid = std::this_thread::get_id();
#define MBGL_VERIFY_THREAD(tid) assert(tid == std::this_thread::get_id());
#else
#define MBGL_STORE_THREAD(tid)
#define MBGL_VERIFY_THREAD(tid)
#endif
// Compiler defines for making symbols visible, otherwise they
// will be defined as hidden by default.
// clang-format off
#ifdef WIN32
#ifdef MBGL_BUILDING_LIB
#ifdef __GNUC__
#define MBGL_EXPORT __attribute__((dllexport))
#else
#define MBGL_EXPORT __declspec(dllexport)
#endif
#else
#ifdef __GNUC__
#define MBGL_EXPORT __attribute__((dllimport))
#else
#define MBGL_EXPORT __declspec(dllimport)
#endif
#endif
#else
#define MBGL_EXPORT __attribute__((visibility ("default"))) // NOLINT
#endif
// clang-format on