commit 46fe51b34008c74ba1dfab64a6f2e4d38874c5ac Author: Simone Coco Date: Tue Dec 23 16:50:39 2025 +0100 initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d234bab --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/*build* \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..1dae0fc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.23) +project(rc64 CXX) + + +add_library(rc64 ) +target_include_directories(rc64 PUBLIC src/misc) \ No newline at end of file diff --git a/src/misc/type.hpp b/src/misc/type.hpp new file mode 100644 index 0000000..28e2c97 --- /dev/null +++ b/src/misc/type.hpp @@ -0,0 +1,14 @@ +#pragma once +#include + +namespace rc64::type { +using u8 = uint8_t; +using u16 = uint16_t; +using u32 = uint32_t; +using u64 = uint64_t; + +using s8 = int8_t; +using s16 = int16_t; +using s32 = int32_t; +using s64 = int64_t; +} \ No newline at end of file diff --git a/src/misc/util.hpp b/src/misc/util.hpp new file mode 100644 index 0000000..1d5fa5c --- /dev/null +++ b/src/misc/util.hpp @@ -0,0 +1,11 @@ +#pragma once + +namespace rc64::util { +inline consteval bool isWindows() { +#ifdef _WIN32 + return true; +#else + return false; +#endif +} +} \ No newline at end of file