Files
RedBear-OS/include/bits
jD91mZM2 ea24699798 Fix undefined behavior
Transmuting from an immutable to a mutable reference is undefined
behavior in Rust, with the exception of UnsafeCell which tells the
optimizer to not draw too many conclusions. Sadly UnsafeCell::get cannot
yet be used in statics (see https://github.com/rust-lang/rust/issues/51718),
so this works around that by making the statics into functions and
making C macros to call those.
2018-06-22 21:17:44 +02:00
..
2018-06-20 19:40:38 +01:00
2018-03-10 21:16:55 +00:00
2018-06-22 14:54:10 +02:00
2018-06-22 21:17:44 +02:00
2018-03-11 21:36:02 +00:00
2018-03-03 20:48:37 -07:00