This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
space-war/include/tinyengine/tool.hpp

20 lines
309 B
C++
Raw Permalink Normal View History

2022-01-30 21:24:16 +08:00
#pragma once
2022-01-30 21:24:16 +08:00
#include "pch.hpp"
template <typename T>
using Unique = std::unique_ptr<T>;
template <typename T>
using Ref = std::shared_ptr<T>;
#ifdef GAME_DEBUG
#define FATAL_ERROR(msg) assert((void(msg), false))
#else
#define FATAL_ERROR(msg)
#endif
inline float GetTime() {
return glfwGetTime();
}