MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_debug_module_apple.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_DEBUG_MODULE_APPLE_H_1614220191
12#define INCGUARD_MGL_DEBUG_MODULE_APPLE_H_1614220191
13
14#include <mgl/mgl_environment.h>
15#if defined(MGL_TARGET_MACOS) || defined(MGL_TARGET_IOS) || defined(MGL_TARGET_TVOS)
16
18
19namespace MGL::System
20{
22class AppleDebugModule : public DebugModuleInterface
23{
24public:
25 AppleDebugModule(LogLevel logLevel) noexcept;
26
27 void Log(LogLevel logLevel, const char *format, ...) const noexcept override;
28
29 /* ------------------------------------------------------------------------- */
34 /* ------------------------------------------------------------------------- */
35 void SetLogLevel(LogLevel logLevel) noexcept override
36 {
37 _logLevel = logLevel;
38 }
39
40 void Trap() const noexcept override;
41 void Abort() const noexcept override;
42
43private:
44 LogLevel _logLevel;
45};
46} // namespace MGL::System
47
48#endif // defined(MGL_TARGET_MACOS) || defined(MGL_TARGET_IOS) || defined(MGL_TARGET_TVOS)
49#endif // INCGUARD_MGL_DEBUG_MODULE_APPLE_H_1614220191
50
51// vim: et ts=4 sw=4 sts=4
MGL デバッグモジュールインターフェース
MGL 環境定義