moonlight-qt/app/utils.h

12 lines
250 B
C
Raw Normal View History

2018-04-28 22:14:27 -07:00
#pragma once
#define THROW_BAD_ALLOC_IF_NULL(x) \
if ((x) == nullptr) throw std::bad_alloc()
2020-02-08 18:47:59 -08:00
namespace WMUtils {
bool isRunningX11();
bool isRunningWayland();
bool isRunningWindowManager();
bool isRunningDesktopEnvironment();
2020-02-08 18:47:59 -08:00
}