Remove everything, going rustacean
Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
15
src/common.h
15
src/common.h
@@ -1,15 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <format>
|
||||
|
||||
#define OPENXR_CHECK(fn_call, ...) \
|
||||
do { \
|
||||
XrResult result = fn_call(__VA_ARGS__); \
|
||||
if (result != XR_SUCCESS) { \
|
||||
std::array<char, XR_MAX_RESULT_STRING_SIZE> msg {}; \
|
||||
xrResultToString(nullptr, result, msg.data()); \
|
||||
throw std::runtime_error( \
|
||||
std::format("OpenXR call '{}' failed (code {}): {}", #fn_call, \
|
||||
static_cast<int>(result), msg.data())); \
|
||||
} \
|
||||
} while (0)
|
||||
Reference in New Issue
Block a user