Commit Graph

577 Commits

Author SHA1 Message Date
9c08ab458a [ox/fs] Cleanup tests 2021-03-24 01:20:27 -05:00
85e7374446 [ox] Add package name to test output 2021-03-24 00:46:03 -05:00
40f2537c05 [ox] Move ptrarith into fs 2021-03-24 00:44:11 -05:00
fb7b582348 [ox/std] Add moveTo method to Result 2021-03-20 15:32:13 -05:00
351ae69f6f [ox/std] Add oxInfo log event type 2021-03-19 20:52:44 -05:00
3ca9db5e8a [ox/std] Add oxError and oxErrorf 2021-03-18 01:26:05 -05:00
e6d271295f [ox/std] Add oxRequire 2021-03-16 21:15:05 -05:00
84705e304f [ox] Make OX_NODEBUG a normal variable set in main CMakeLists.txt 2021-03-12 01:39:02 -06:00
582cbf2041 [ox/std] Make oxDebug trigger build failure if OX_NODEBUG is set to ON 2021-03-12 01:30:42 -06:00
75a2b8f489 [ox/std] Add option to give oxTrace a msg arg 2021-03-11 21:23:59 -06:00
2f95c0aecc [ox/std] Addressing CLion suggestions 2021-03-11 21:19:55 -06:00
07c5ed07ef [ox/std] Make use ##__VA_ARGS__ only non OX_USE_STDLIB builds, which are GCC builds 2021-03-11 20:04:34 -06:00
84a9a9d2fd [ox/std] Fix Mac build 2021-03-11 18:46:48 -06:00
cb6066f81e [ox/std] Add oxDebug and oxDebugf, which are oxTrace aliases for debug channel 2021-03-11 00:35:10 -06:00
2ebce7713d [ox] Cleanup some messy trace points 2021-03-10 20:17:45 -06:00
55a4f2451e [ox/std] Add oxTracef 2021-03-10 20:14:31 -06:00
ef6673067b [ox/std] Make Error constructor explicit 2021-03-10 20:14:15 -06:00
01f29c5258 [ox/std] Fix itoa to handle unsigned ints without conversion warnings 2021-03-09 19:36:04 -06:00
e583cade27 [ox/std] Add ResizedInt to get the same sign int with a different size 2021-03-09 19:35:02 -06:00
662c2e11de [ox/std] Add init hook to tracing system 2021-03-08 20:10:46 -06:00
bcb8c108b2 [ox/std] Add option for building trace hook in shared library 2021-03-05 21:45:37 -06:00
c5773202b5 [ox/std] Make ox_atoi return an ox::Result 2021-03-03 00:30:16 -06:00
2e8d0a421c [ox/std] Cleanup 2021-03-02 23:45:42 -06:00
d7c1d2a6ab [ox/mc] Cleanup 2021-03-02 23:39:44 -06:00
dde4fb017e [ox/claw] Make Claw build in GBA builds, only without OC 2021-03-02 23:38:43 -06:00
5d5917566f [ox/clargs] Make OxClArgs pull in OxStd 2021-03-02 21:47:02 -06:00
f5f8593638 [ox/clargs] Make clargs build in bare metal builds 2021-03-02 21:41:45 -06:00
d4e3af1464 [ox/std] Cleanup OS constexpr/define order in defines 2021-03-02 21:05:07 -06:00
eca8641bec [ox/clargs] Remove std::map and std::string as dependencies 2021-03-02 20:35:14 -06:00
7b6fad8062 [ox/std] Fix Darwin OS detection 2021-02-28 14:31:32 -06:00
70168286ab [ox] Address CLion warnings 2021-02-27 02:38:18 -06:00
9a92dadff7 [ox/std] Remove implicit type conversion from ox_itoa 2021-02-22 22:23:10 -06:00
4e70b459f6 [ox/model] Removes some unnecessary type conversions 2021-02-22 22:21:57 -06:00
034cb97a42 [ox/mc] Removes some unnecessary type conversions 2021-02-22 22:21:07 -06:00
60714d3009 [ox/oc] Cleanup ON check to work as a boolean check 2021-02-22 22:19:16 -06:00
a5194fd972 [ox/claw] Make CMake dependencies PUBLIC 2021-02-22 22:18:13 -06:00
a2aa9c8f82 [ox] Fix OX_USE_STDLIB check to work correctly on Windows 2021-02-22 22:01:16 -06:00
57ad13fc4a [ox/std] Add an unlikely label to ox{Return,Throw}Error for C++20 builds 2021-02-21 00:32:07 -06:00
f272555a25 [ox/std] Add OS detection 2021-02-03 19:23:55 -06:00
546f083346 [ox] Run liccor 2021-01-21 23:35:13 -06:00
5f63e39c27 [ox] Update liccor file 2021-01-21 00:48:30 -06:00
d58570d76b [ox/fs] Fix C++20 compatibility issues 2021-01-21 00:34:08 -06:00
4276135e65 [ox/clargs] Add default argument option for ClArgs::getString 2020-12-21 23:35:09 -06:00
9c8dc09996 [ox/std] Fix ox::assertFunc<bool> for GBA 2020-12-15 23:54:32 -06:00
f35b6f0026 [ox] Set CMP0110 to NEW, this which allows spaces in test names 2020-11-21 23:24:09 -06:00
04c660765e [ox/std] Make placement new function constexpr 2020-11-21 23:23:47 -06:00
a5e518ec7a [ox/std] Make Vector::size() nodiscard 2020-11-21 23:21:11 -06:00
40f3c4ecb5 [ox] Fix MSVC build 2020-11-07 17:59:17 -06:00
985b2b57ba [ox/std] Replace reinterpret_cast with bit_cast in Vector 2020-10-20 19:34:55 -05:00
84dfb17f7f [ox/std] Remove inappropriate noexcepts and call destructors on erase and resize 2020-10-20 19:22:30 -05:00
81a78bf95e [ox/std] Fix Error to build in Clang 2020-10-20 19:11:06 -05:00
79acffcc29 [ox/std] Add memsetElements 2020-10-19 19:43:20 -05:00
b6c82c42f0 [ox/std] Replace ox::_error with ox::Error constructor 2020-10-16 20:07:07 -05:00
fe40b2e144 [ox] Cleanup unnecessary ox:: 2020-10-16 19:56:13 -05:00
6b720042d0 [ox] Rename ValErr to Result 2020-10-16 19:43:10 -05:00
0b3b54b3fd [ox] Remove remaining nodiscards from Error functions 2020-10-16 00:07:43 -05:00
75814a2896 [ox] Remove now superfluous [[nodiscards]] from ox::Error functions 2020-10-15 23:55:20 -05:00
b1d94782db [ox/std] Add Error's m_i to copy operator and constructor 2020-10-12 21:00:01 -05:00
a725369311 [ox] Make Error its own type, not dependent on Integer and make nodiscard 2020-10-11 19:04:00 -05:00
0b0fd151c8 [ox] Switch to vcpkg 2020-08-05 20:17:30 -05:00
579b328212 [ox/std] Cleanup 2020-07-28 19:11:10 -05:00
834ca2893b [ox/std] Fix oxPanic errCode parameter name 2020-07-14 22:13:54 -05:00
c6ff015f79 [ox/std] Add memset to memops.h 2020-07-14 22:13:09 -05:00
7b7a8d75b4 [ox/std] Add OX_ALIGN8 2020-07-11 23:40:16 -05:00
740e0286d0 [ox/std] Add OX_ALIGN4 2020-07-11 22:24:37 -05:00
dbf532df1c [ox/mc] Replace an alloca call with malloca to prevent stack overflow 2020-06-20 03:54:16 -05:00
a9ec635160 [ox/std] Make String comparison operators const correct 2020-06-20 03:49:38 -05:00
257e857116 [ox/std] Add move operator to String 2020-06-20 02:58:32 -05:00
0035faa416 [ox/std] Make Vector::push_back use copy constructor instead of copy assign 2020-06-20 02:58:20 -05:00
5c34c26080 [ox/mc] Fix string allocation size 2020-06-20 02:55:25 -05:00
b6f8c9e242 [ox] Add HashMap<String, T> to serializaton handlers 2020-06-19 07:34:04 -05:00
9576f78abf [ox/model] Fix TypeDescWriter NameCatcher to have opType of WriteDefinition 2020-06-17 06:44:31 -05:00
7b07edd9e4 [ox/std] Rename is_signed to is_signed_v 2020-06-17 06:36:26 -05:00
a5b01bb0d7 [ox/fs] Cleanup 2020-06-17 01:53:35 -05:00
1c5fed05bf [ox/std] Make ox_strncmp a template 2020-06-17 01:52:28 -05:00
17762b40b7 [ox/oc] Fix write to ignore null objects passed in 2020-06-16 04:41:43 -05:00
4f4ec089fd [ox/model] Fix model descriptor writing to handle Vector, etc. 2020-06-16 04:40:43 -05:00
f58c658be1 [ox/fs] Make PassthroughFS mkdir pass mkdir -p on existing directory 2020-06-16 04:39:15 -05:00
e92e980fde [ox/std] Change toError(ox::ValErr<T>) to toError(const ox::ValErr<T>&) 2020-06-16 00:45:24 -05:00
71b6c72c46 [ox/model] Add opType method to TypeDescWriter 2020-06-16 00:23:03 -05:00
112c2c4212 [ox/fs] Change Claw type IDs to domain based namespaces 2020-06-15 23:16:34 -05:00
20f4d50ad6 [ox/std] Add missing includes to CMake install and std.hpp 2020-06-15 04:54:52 -05:00
880e6e49d6 [nostalgia/fs] Fix Directory to write back out as a Directory 2020-06-15 01:34:48 -05:00
4a221e52db [ox/claw] Add strip header function 2020-06-15 01:34:22 -05:00
c178a2273b [ox/std] Fix macOS build 2020-06-05 19:47:29 -05:00
4d806021d0 [ox/claw] Fix TypeInfoCatcher to fit model handler API 2020-05-29 20:24:09 -05:00
98a0c42040 [nostalgia/core/gba][ox/std] Move heap manager from NostalgiaCore to OxStd 2020-05-29 19:44:10 -05:00
2dad1688b5 [ox] Fix GBA build 2020-05-17 04:20:43 -05:00
b1a0fcbc57 [ox/claw] Add missing write.cpp 2020-05-16 22:47:51 -05:00
faaddd1234 [ox/claw] Fix TypeVersion writing 2020-05-16 22:35:54 -05:00
819959745d [ox] Fix Mac build and fix MC to increment field counter on empty string 2020-05-08 21:32:56 -05:00
f91874182e [ox/model] Add preloadable attribute to type descriptor 2020-05-08 01:32:36 -05:00
e2952ec8c1 [ox/claw] Add Claw 2020-05-06 20:38:39 -05:00
3ff4a59373 [ox/fs] Make FileAddress model use builtin union support 2020-04-16 23:34:08 -05:00
5265a94a80 [ox/oc] Add support for allocating for strings 2020-04-16 23:28:52 -05:00
b3fa531aa0 [ox/model] Add support to SerStr for allocating string 2020-04-16 22:44:50 -05:00
8753d39b66 [ox/std] Fix OxError for release builds and fix ox::Error assignment operator 2020-04-16 22:19:27 -05:00
ed0bf268ba [ox/fs] Add model definition for FileAddress 2020-04-15 21:02:35 -05:00
d0f5819072 [ox/oc] Add union support 2020-04-13 23:36:27 -05:00
d2e7528dae [ox/mc] Fix int reads not to clear out unions 2020-04-13 02:37:08 -05:00
1d07890668 [ox] Add support for unions to model and mc 2020-04-13 02:28:38 -05:00
5d95b188d8 [ox/model] Harmonize make the interface for walking over models 2020-04-09 22:57:03 -05:00
a4000f6497 [ox/std] Fix assert for !OX_USE_STDLIB 2020-04-08 23:30:14 -05:00
d2ec3b8350 [ox/fs] Remove explicit linking of C++ standard file system library 2020-04-07 22:04:23 -05:00
19422ced3e [ox/std] Add move constructor and set null terminator for String 2020-04-07 22:03:19 -05:00
540e67fcd8 [ox/std] Add support for messages in ox::Error 2020-04-07 22:02:07 -05:00
89854a584a [ox/oc] Add OrganicClaw 2020-04-07 22:00:14 -05:00
8b74920270 [ox/std] Fix implicit sign conversion 2020-04-05 19:48:47 -05:00
c99b60186d [ox/std] Fix Vector::expandCap not to delete old array an not new one 2020-03-31 21:42:47 -05:00
680881003c [ox/mc] Fix false positive buffer overflow check when string is last item in MC buffer 2020-03-31 20:40:29 -05:00
d7b5f51fdc [ox/mc] Prevent reading array length of absent array 2020-03-30 23:59:01 -05:00
4011773374 [ox/std] Add insert method to Vector 2020-03-29 13:32:17 -05:00
aa1b5fa4cf [ox/std] Add missing declaration for String::String(const String&) 2020-03-19 01:56:44 -05:00
4273e72e74 [ox/std] Add copy constructor to String 2020-03-16 00:12:09 -05:00
e0a2676d54 [ox/std] Add String::operator=(const String&) 2020-03-15 14:31:43 -05:00
1313b562bd [ox] Remove bstring.hpp include from string.hpp 2020-03-15 14:29:18 -05:00
f7bdd5042d [ox/std] Add String::operator+ methods 2020-03-15 02:17:11 -05:00
412b187c4f [ox/std] Add bstring.hpp to install 2020-03-15 01:20:28 -05:00
38acb5dfc3 [nostalgia/std] Add String as alternative to BString, which uses heap allocations 2020-03-14 16:33:08 -05:00
4571a95a06 [ox] Fix OxConfig to include Model library 2020-02-16 14:08:28 -06:00
da3c9107db [ox/std] Fix type in hardware detection 2020-02-16 02:03:28 -06:00
74e6a4cbff [ox/std] Fix oxPanic parameter order 2020-02-16 01:43:54 -06:00
36b6542bf3 [ox/std] Fix hardware detection to work in MSVC 2020-02-15 12:24:43 -06:00
c2b4595c33 [ox/std] Make unrecognized hardware trigger compile error 2020-02-12 22:13:34 -06:00
c5f0825edb [ox/mc] Fix signed/unsigned comparison in field bitmap 2020-02-12 22:04:35 -06:00
517551348a [ox/fs] Fix GCC/Clang incompatibility 2020-02-12 22:04:35 -06:00
4cbf1b9a9a [ox] Get building in MSVC 2020-02-12 22:04:35 -06:00
553cde0d0c [ox/fs] Replace uint8_t with char for buffers 2020-02-11 21:42:09 -06:00
ea14ccac3a [ox/std] Leave panic unimplemented when C++ stdlib is absent 2020-02-11 21:10:36 -06:00
e59499b127 [ox/std] Fix oxIgnoreError to not completely ignore the statement it encompases 2020-02-11 00:07:37 -06:00
e927c51b61 [ox/fs] Give FileSystem ability to cleanup FS buffer 2020-02-01 00:11:59 -06:00
dd008c3a08 [ox/std] Remove constexpr from ox::bit_cast 2020-01-31 23:53:55 -06:00
878c944ebf [ox/std] Add bit_cast 2020-01-31 19:43:23 -06:00
d9b363330b [ox/std] Rename bitops.hpp to bit.hpp to mirror the new bit in C++20 2020-01-31 19:06:26 -06:00
c9f91c16c2 [ox/fs] Add exception handling to PassthroughFS for fstream usage 2020-01-25 15:18:08 -06:00
52026ba1a3 [ox/fs] Add oxPanic and remove ErrorInfo 2020-01-25 00:04:47 -06:00
c214f3334a [ox] Remove gdblogger 2020-01-24 23:33:57 -06:00
02c8fb1880 [ox] Remove .gdbinit 2020-01-24 23:27:28 -06:00
8037bc9535 [ox/fs] Remove unnecessary PassthroughFS fstream close 2020-01-24 22:48:05 -06:00
84ee494834 [ox/fs] Make PassthroughFS presence define more export freindly 2020-01-12 20:43:39 -06:00
3afaa0fc85 [ox/fs] Cleanup 2019-12-31 20:08:50 -06:00
4b832dd3d7 [ox/fs] Change PassThroughFS to use fstream instead of C file IO for compatibility reasons 2019-12-22 00:30:08 -06:00
9187bcf62b [ox/std] Fix __has_include logic 2019-12-19 23:43:33 -06:00
8c576ef9c5 [ox] Replace __attribute__((packed)) with OX_PACKED 2019-12-19 23:38:17 -06:00
1d600186cd [ox/fs] Cleanup, Fix FileLocation to make copy of non-const strings 2019-11-26 23:18:38 -06:00
147a37ac6e [ox/std] Cleanup 2019-11-26 23:18:19 -06:00
5dc74e6fd7 [ox/std] Fix constexpr-ness of ox_memset 2019-11-09 01:24:15 -06:00
e470a1da09 [ox/std] Add ox_inhibit_loop_to_libcall for memset and memcpy 2019-11-09 00:06:05 -06:00
ddb158e433 [ox/fs] Fix Directory allocating too much space 2019-11-07 00:34:07 -06:00
d033335350 [ox/ptrarith] Make NodeBuffer clear all memory before using it 2019-11-07 00:33:34 -06:00