initial commit

This commit is contained in:
Simone Coco
2025-12-23 16:50:39 +01:00
commit 46fe51b340
4 changed files with 32 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/*build*

6
CMakeLists.txt Normal file
View File

@@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.23)
project(rc64 CXX)
add_library(rc64 )
target_include_directories(rc64 PUBLIC src/misc)

14
src/misc/type.hpp Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
#include <cstdint>
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;
}

11
src/misc/util.hpp Normal file
View File

@@ -0,0 +1,11 @@
#pragma once
namespace rc64::util {
inline consteval bool isWindows() {
#ifdef _WIN32
return true;
#else
return false;
#endif
}
}