// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (See accompanying // file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0) // Official repository: https://github.com/nekernel-org/nectar #ifndef NECTAR_DEBUGGERKIT_DETAIL_CONFIG_H #define NECTAR_DEBUGGERKIT_DETAIL_CONFIG_H /// =========================================================== /// /// @author Amlal El Mahrouss /// =========================================================== /// #include #include #include #include #include #include #include #include #include #include #include #ifdef __APPLE__ #include #include #include #endif #ifndef kDistRelease #define kDistVersion "v0.1.3-debuggerkit" #define kDistVersionBCD 0x0001 #define ToString(X) Stringify(X) #define Stringify(X) #X #define kDistRelease ToString(kDistReleaseBranch) #endif // !kDistRelease namespace DebuggerKit { /// =========================================================== /// /// \brief Process ID /// =========================================================== /// typedef uint64_t ProcessID; /// =========================================================== /// /// \brief Address type, a la BSD. /// =========================================================== /// typedef char* CAddress; namespace Detail { constexpr auto kDebugCmdLen = 256U; constexpr auto kDebugPort = 51820; constexpr auto kDebugMagic = "NE1.0.0;"; constexpr uint16_t kDebugVersion = 0x0100; constexpr auto kDebugDelim = ';'; constexpr auto kDebugEnd = '\r'; using dk_socket_type = int64_t; } // namespace Detail } // namespace DebuggerKit #endif // NECTAR_DEBUGGERKIT_DETAIL_CONFIG_H