38 Commits

Author SHA1 Message Date
ce7a7b15c7 Added utilty functions to read an entire file. 2023-11-19 23:45:35 +01:00
0e90cabb7e Added PathReference utility type. 2023-11-19 23:45:14 +01:00
60707421c8 Fixed chaining iterators for const ranges. 2023-11-19 20:04:46 +01:00
ba8c1ebe1e Moved the creation stack to the shared state so it is retrievable, added comparison operators to TaskHandle and added getCurrentTask() function to retrieve the handle of the current task. 2023-11-19 20:04:19 +01:00
803f1463dc Made the message queue iterable. 2023-11-19 20:03:24 +01:00
065181fc69 Also cancel sub-tasks (those that are awaited by this one) when cancelling a task. 2023-11-18 22:20:47 +01:00
4dfc116830 Added zip() functionality for combining iterators. 2023-11-16 23:39:49 +01:00
a92148aac1 Added libfmt formatters for stacktrace. 2023-11-16 23:39:33 +01:00
55486b49dc Fixed optional move constructor for references. 2023-11-16 23:39:19 +01:00
5aecd20c56 Use our optional type for storing results of the future. 2023-11-16 23:38:53 +01:00
5eb7864928 Moved TaskCancelled out of impl namespace and removed errornous noexcept. 2023-11-16 00:36:24 +01:00
ef6830e01c Added operator-> to optional type. 2023-11-16 00:35:18 +01:00
121e8a84f5 Added type filtering iterator. 2023-11-16 00:35:18 +01:00
0b8772c952 Added (pretty limited) support for uncaught exceptions in coroutines. 2023-11-13 11:34:47 +01:00
dff7b30b2d Added missing "std::". 2023-11-13 11:34:22 +01:00
463890cfcb Added Signal::connect() function that takes an object + function pointer. 2023-11-12 19:59:18 +01:00
7c1dd29a85 Added operators to BoxedObject, fixed MappintIterator for reference types and fixed signature of custom assertion and error handlers. 2023-11-12 15:25:46 +01:00
2cc0f74d06 Added result type and stacktrace capabilities. 2023-11-11 12:41:47 +01:00
ae5e73aa58 Fixed coroutine cleanup. 2023-11-11 01:37:59 +01:00
938135768b Added StrideSpan type (a span with a stride). Added makeSpan() function to TypelessBuffer. 2023-11-10 01:36:48 +01:00
617e051943 Added validity check to task handles and fixed some clang-tidy warning in MIJIN_ASSERT. 2023-11-03 23:17:48 +01:00
89bb110116 Added cancelling (and some exception handling) for coroutines. 2023-11-03 00:48:13 +01:00
54c63cfe69 Removed _debugBreak() again, as there is already MIJIN_TRAP(). 2023-11-01 23:53:50 +01:00
522e6534bf Added _debugBreak() macro. 2023-11-01 16:41:03 +01:00
cff5879572 Added filter() and some more iterator utilities. 2023-08-21 01:48:43 +02:00
a1f1717e22 Added ProcessStream to for running processes (on Linux) and streaming their output.
Added map() function for creating a mapping iterator.
Added mijin::pipe types for map() and join().
2023-08-06 13:52:51 +02:00
1549ef27a7 Fixed some more or less valid clang and clang-tidy errors. 2023-08-05 17:47:59 +02:00
97d68d31e8 Added is_type_member to check if a type is inside a variant or similar types. 2023-07-19 22:51:37 +02:00
3910f9638e Added Chain() type to chain iterables using pipes. Also fixed crash due to RangeRef actually storing a reference when it shouldn't. 2023-07-13 00:03:45 +02:00
adff35a26a Made std::span and std::string_view "RangeAdapterType"s so they can be passed by copy. Also added functions to pipe different iterable functions into each other (WIP). 2023-07-12 23:08:20 +02:00
ef5d78e1b1 Added replace() and chain() functions for generating replacing and chaining iterables. Also added a proxy type to allow combining different iteratables. 2023-07-12 21:44:04 +02:00
04520a5d35 Added more utility and fixed Flag type. 2023-07-08 11:16:37 +02:00
537229104d Data pool doesn't have any source... 2023-07-01 11:11:15 +02:00
c484d0fa9a Added MIJIN_SCOPE_EXIT and MIJIN_CONCAT macros. 2023-06-29 23:07:42 +02:00
e81fe345c9 Added enumerate() function for enumerating an iterator + index. 2023-06-25 19:38:09 +02:00
fb392a7239 Fixed -Werror=sign-compare. 2023-06-25 12:31:43 +02:00
920e83d4da Update to LibConf system, added loading of dynamic libraries (only Linux for now) and some more fixes. 2023-05-31 23:41:22 +02:00
da781b87f2 intial commit 2023-05-29 14:51:44 +02:00