moonlight-qt/utils.h
Cameron Gutman a5d50cd4f0 more work
2018-04-28 22:14:27 -07:00

4 lines
102 B
C++

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