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) \
20using Ref = std::shared_ptr<type>; \
21template<typename ...Args> \
22inline static Ref New(Args &&...ctor_args) { \
23 return std::move(std::make_shared<type>(std::forward<Args>(ctor_args)...)); \
24}
25
26namespace pu {
27
28 using i32 = s32;
29
30}
Definition: audio_Music.hpp:18
s32 i32
Definition: pu_Include.hpp:28