moonlight-qt/app/utils.h
2018-07-18 18:39:33 -07:00

5 lines
99 B
C++

#pragma once
#define THROW_BAD_ALLOC_IF_NULL(x) \
if ((x) == nullptr) throw std::bad_alloc()