moonlight-qt/app/utils.h

6 lines
103 B
C
Raw Normal View History

2018-04-29 05:14:27 +00:00
#pragma once
#define THROW_BAD_ALLOC_IF_NULL(x) \
if ((x) == nullptr) throw new std::bad_alloc()