watch_platform Module

Platform-specific helpers.

Provides shell wrapping and null-device paths for portable command execution.

This module is intentionally minimal and uses fpm_environment:get_os_type for OS detection.


Uses

    • fpm_environment
  • module~~watch_platform~~UsesGraph module~watch_platform watch_platform fpm_environment fpm_environment module~watch_platform->fpm_environment

Functions

public function is_windows()

Return whether the current OS is Windows.

Arguments

None

Return Value logical

public function null_device() result(p)

Return the system null device path.

Arguments

None

Return Value character(len=:), allocatable

public function shell_wrap(cmd) result(wrapped)

Wrap a command for execution by the platform shell.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: cmd

Return Value character(len=:), allocatable