moonlight-qt/app/utils.h
2018-06-23 18:46:59 -07:00

5 lines
103 B
C++

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