Skip to content

Setup Module

Melthen-bor edited this page Jul 9, 2025 · 1 revision

Interface

Macros

  • seg_static_assert(MSG)

Types

struct seg_error

  • uint64_t type
  • uint64_t code

enum seg_os_type

  • SEG_FREESTANDING
  • SEG_WIN32
  • SEG_WIN64
  • SEG_LINUX
  • SEG_ANDROID
  • SEG_UNIX
  • SEG_MAC
  • SEG_WINDOWS

enum seg_architecture_type

  • SEG_UNKNOWN
  • SEG_86
  • SEG_86_64
  • SEG_ARM

enum seg_compiler_type

  • SEG_NOT_KNOWN
  • SEG_GCC
  • SEG_MSVC
  • SEG_CLANG
  • SEG_MINGW_32
  • SEG_MINGW_64

struct seg_compiler_version

  • uint64_t major
  • uint64_t minor
  • uint64_t patch

enum seg_bit_width

  • SEG_UNKNOWN_BITS
  • SEG_BIT_8
  • SEG_BIT_16
  • SEG_BIT_32
  • SEG_BIT_64

Functions

  • enum seg_os_type seg_get_current_os(void)
  • char* get_current_os_name(void)
  • char* get_os_name(enum seg_os_type)
  • enum seg_compiler_type seg_get_current_compiler(void)
  • char* get_current_compiler_name(void)
  • char* get_compiler_name(enum seg_compiler_type)
  • struct seg_compiler_version get_current_compiler_version(void)
  • enum seg_bit_width seg_get_bit_width(void)