Start fixing some cross platform issues
This commit is contained in:
14
MODULE.bazel.lock
generated
14
MODULE.bazel.lock
generated
@ -64,20 +64,20 @@
|
||||
"@@apple_support~//crosstool:setup.bzl%apple_cc_configure_extension": {
|
||||
"general": {
|
||||
"bzlTransitiveDigest": "PjIds3feoYE8SGbbIq2SFTZy3zmxeO2tQevJZNDo7iY=",
|
||||
"usagesDigest": "+hz7IHWN6A1oVJJWNDB6yZRG+RYhF76wAYItpAeIUIg=",
|
||||
"usagesDigest": "aLmqbvowmHkkBPve05yyDNGN7oh7QE9kBADr3QIZTZs=",
|
||||
"recordedFileInputs": {},
|
||||
"recordedDirentsInputs": {},
|
||||
"envVariables": {},
|
||||
"generatedRepoSpecs": {
|
||||
"local_config_apple_cc_toolchains": {
|
||||
"bzlFile": "@@apple_support~//crosstool:setup.bzl",
|
||||
"ruleClassName": "_apple_cc_autoconf_toolchains",
|
||||
"attributes": {}
|
||||
},
|
||||
"local_config_apple_cc": {
|
||||
"bzlFile": "@@apple_support~//crosstool:setup.bzl",
|
||||
"ruleClassName": "_apple_cc_autoconf",
|
||||
"attributes": {}
|
||||
},
|
||||
"local_config_apple_cc_toolchains": {
|
||||
"bzlFile": "@@apple_support~//crosstool:setup.bzl",
|
||||
"ruleClassName": "_apple_cc_autoconf_toolchains",
|
||||
"attributes": {}
|
||||
}
|
||||
},
|
||||
"recordedRepoMappingEntries": [
|
||||
@ -92,7 +92,7 @@
|
||||
"@@platforms//host:extension.bzl%host_platform": {
|
||||
"general": {
|
||||
"bzlTransitiveDigest": "xelQcPZH8+tmuOHVjL9vDxMnnQNMlwj0SlvgoqBkm4U=",
|
||||
"usagesDigest": "pCYpDQmqMbmiiPI1p2Kd3VLm5T48rRAht5WdW0X2GlA=",
|
||||
"usagesDigest": "meSzxn3DUCcYEhq4HQwExWkWtU4EjriRBQLsZN+Q0SU=",
|
||||
"recordedFileInputs": {},
|
||||
"recordedDirentsInputs": {},
|
||||
"envVariables": {},
|
||||
|
@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
// @Todo Make this portable-ish
|
||||
#define ASL_ASSERT(...) \
|
||||
if (__VA_ARGS__) {} \
|
||||
else { __debugbreak(); }
|
||||
else { __builtin_debugtrap(); }
|
||||
|
@ -1,14 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
using int8_t = char;
|
||||
using int16_t = short;
|
||||
using int32_t = int;
|
||||
using int64_t = long long;
|
||||
using int8_t = signed char;
|
||||
using int16_t = signed short;
|
||||
using int32_t = signed int;
|
||||
using int64_t = signed long;
|
||||
|
||||
// @Todo Proper type definition for Windows/Linux
|
||||
|
||||
using uint8_t = unsigned char;
|
||||
using uint16_t = unsigned short;
|
||||
using uint32_t = unsigned int;
|
||||
using uint64_t = unsigned long long;
|
||||
using uint64_t = unsigned long;
|
||||
|
||||
using size_t = uint64_t;
|
||||
using isize_t = int64_t;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include "asl/integers.hpp"
|
||||
|
||||
constexpr void* operator new(uint64_t, void* ptr)
|
||||
constexpr void* operator new(size_t, void* ptr)
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "asl/testing/testing.hpp"
|
||||
|
||||
#include <asl/print.hpp>
|
||||
#include "asl/print.hpp"
|
||||
|
||||
static asl::testing::Test* g_head = nullptr;
|
||||
static asl::testing::Test* g_tail = nullptr;
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <asl/utility.hpp>
|
||||
#include "asl/utility.hpp"
|
||||
|
||||
namespace asl::testing
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "asl/option.hpp"
|
||||
#include "asl/tests/test_types.hpp"
|
||||
#include <asl/testing/testing.hpp>
|
||||
#include "asl/testing/testing.hpp"
|
||||
|
||||
static_assert(asl::trivially_destructible<asl::option<TriviallyDestructible>>);
|
||||
static_assert(!asl::trivially_destructible<asl::option<HasDestructor>>);
|
||||
|
Reference in New Issue
Block a user