boot-manager/main.cc
/**
 * @brief Makes fatal dialog context.
 * @param boot_manager_args Boot manager arguments.
 * @return Fatal dialog context.
 */
@brief Makes fatal dialog context.
@param boot_manager_args Boot manager arguments.
@return Fatal dialog context.
@brief Makes fatal dialog context . @param boot_manager_args Boot manager arguments . @return Fatal dialog context .
[[nodiscard]] wb::ui::FatalDialogContext MakeFatalContext(
    const wb::boot_manager::BootManagerArgs& boot_manager_args) noexcept {
#ifdef WB_OS_POSIX
  return wb::ui::FatalDialogContext{boot_manager_args.intl.Layout()};
#elif defined(WB_OS_WIN)
  return {boot_manager_args.intl, boot_manager_args.intl.Layout(),
          boot_manager_args.main_icon_id, boot_manager_args.small_icon_id};
#else
#error "Please define MakeFatalContext for your platform."
#endif
}
[[ nodiscard ]] wb :: ui :: FatalDialogContext MakeFatalContext ( const wb :: boot_manager :: BootManagerArgs & boot_manager_args ) noexcept { #ifdef WB_OS_POSIX return wb :: ui :: FatalDialogContext { boot_manager_args . intl . Layout ( ) } ; #elif defined ( WB_OS_WIN ) return { boot_manager_args . intl , boot_manager_args . intl . Layout ( ) , boot_manager_args . main_icon_id , boot_manager_args . small_icon_id } ; #else #error  "Please define MakeFatalContext for your platform." #endif }
@brief Makes fatal dialog context.
@brief Makes fatal dialog context .