Just™ Game Engine
Classes | Namespaces | Macros | Typedefs | Functions
base.hpp File Reference
#include "jng/debug/assert.hpp"
#include "jng/debug/log.hpp"

Go to the source code of this file.

Classes

class  jng::NonCopyable
 

Namespaces

namespace  jng
 

Macros

#define JNG_BIND_EVENT_FUNC(func)   [this](auto&& ...args) -> decltype(auto) { return this->func(std::forward<decltype(args)>(args)...); }
 

Typedefs

template<typename T >
using jng::Scope = std::unique_ptr< T >
 
template<typename T >
using jng::Ref = std::shared_ptr< T >
 
using jng::u8 = uint8_t
 
using jng::u16 = uint16_t
 
using jng::u32 = uint32_t
 
using jng::u64 = uint64_t
 
using jng::s8 = int8_t
 
using jng::s16 = int16_t
 
using jng::s32 = int32_t
 
using jng::s64 = int64_t
 
using jng::f32 = float
 
using jng::f64 = double
 

Functions

template<typename T , typename ... Args>
constexpr Scope< T > jng::makeScope (Args &&...args)
 
template<typename T , typename ... Args>
constexpr Ref< T > jng::makeRef (Args &&...args)
 

Macro Definition Documentation

◆ JNG_BIND_EVENT_FUNC

#define JNG_BIND_EVENT_FUNC (   func)    [this](auto&& ...args) -> decltype(auto) { return this->func(std::forward<decltype(args)>(args)...); }