Plutonium framework API
0.3.0
UI framework libraries for libnx
pu_Include.hpp
Go to the documentation of this file.
1
2
/*
3
4
Plutonium library
5
6
@file pu_Include.hpp
7
@brief Basic includes and definitions for the library
8
9
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
10
11
*/
12
13
#pragma once
14
#include <switch.h>
15
#include <string>
16
#include <memory>
17
18
// Defines a static function (::New(...)) as a constructor for smart ptrs, also defines a custom type (::Ref) to simplify it
19
#define PU_SMART_CTOR(type) \
20
using Ref = std::shared_ptr<type>; \
21
template<typename ...Args> \
22
inline static Ref New(Args &&...ctor_args) { \
23
return std::move(std::make_shared<type>(std::forward<Args>(ctor_args)...)); \
24
}
25
26
namespace
pu
{
27
28
using
i32
= s32;
29
30
}
pu
Definition:
audio_Music.hpp:18
pu::i32
s32 i32
Definition:
pu_Include.hpp:28
Plutonium
include
pu
pu_Include.hpp
Generated by
1.9.3