2
3
4
5
6
7
17
18
19#define PU_SMART_CTOR(type) using
20 Ref = std::shared_ptr<type>; template
21 <typename ...Args> inline
22 static Ref New(Args &&...ctor_args) {
23 return std::make_shared<type>(std::forward<Args>(ctor_args)...); \
24}
27
28
29#define PU_CLASS_POD_GET(fn_name, var_name, type) inline
31 return this->var_name; \
32}
35
36
37#define PU_CLASS_POD_SET(fn_name, var_name, type) inline
38 void Set##fn_name(const type new_val) {
39 this->var_name = new_val; \
40}
43
44
45#define PU_CLASS_POD_GETSET(fn_name, var_name, type) PU_CLASS_POD_GET
46 (fn_name, var_name, type) PU_CLASS_POD_SET
47 (fn_name, var_name, type)
50
51
52#define PU_RC_TRY(rc) {
53 const auto _tmp_rc = (rc);
54 if(R_FAILED
(_tmp_rc)) {
57}
constexpr auto ResultImgInitFailed
Definition pu_Include.hpp:70
constexpr auto ResultSdlCreateRendererFailed
Definition pu_Include.hpp:69
constexpr auto ResultSdlCreateWindowFailed
Definition pu_Include.hpp:68
constexpr u32 Module
Definition pu_Include.hpp:63
constexpr auto ResultTtfInitFailed
Definition pu_Include.hpp:71
constexpr auto ResultSdlInitFailed
Definition pu_Include.hpp:67