Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use fixed width integer types to define jule types #73

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions api/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define __JULE_TYPES_HPP

#include <cstddef>
#include <cstdint>
#include <ostream>

#include "platform.hpp"
Expand All @@ -23,14 +24,14 @@ namespace jule
typedef unsigned long long int Uintptr;
#endif

typedef signed char I8;
typedef signed short int I16;
typedef signed long int I32;
typedef signed long long int I64;
typedef unsigned char U8;
typedef unsigned short int U16;
typedef unsigned long int U32;
typedef unsigned long long int U64;
using I8 = std::int8_t;
using I16 = std::int16_t;
using I32 = std::int32_t;
using I64 = std::int64_t;
using U8 = std::uint8_t;
using U16 = std::uint16_t;
using U32 = std::uint32_t;
using U64 = std::uint64_t;
typedef float F32;
typedef double F64;
typedef bool Bool;
Expand Down