ORE Studio 0.0.4
Loading...
Searching...
No Matches
Namespaces | Functions
ores::platform Namespace Reference

Platform abstraction layer for ORE Studio. More...

Namespaces

namespace  environment
 Environment variable access and system information.
 
namespace  filesystem
 Contains filesystem related classes.
 
namespace  net
 Network utilities and information.
 
namespace  time
 Time and datetime utilities.
 

Functions

void unreachable ()
 Marks a code path as unreachable.
 

Detailed Description

Platform abstraction layer for ORE Studio.

This module provides cross-platform abstractions for system-level operations, isolating platform-specific code from the rest of the codebase. Key features include:

The module is organized into namespaces: environment (system environment), filesystem (file operations), net (network utilities), and time (datetime handling).

Function Documentation

◆ unreachable()

void unreachable ( )

Marks a code path as unreachable.

This function indicates to the compiler that the code path should never be executed. If it is reached at runtime, the behavior is undefined.

Use this after exhaustive switch statements on enums to satisfy the compiler while allowing it to warn if a new enum value is added.

Uses compiler-specific intrinsics:

  • MSVC: __assume(false)
  • GCC/Clang: __builtin_unreachable()