mirror of
https://github.com/urbit/ares.git
synced 2024-11-30 07:25:44 +03:00
jets: a bit of external developer friendliness for hot state
This commit is contained in:
parent
93e7ca016f
commit
d5fc700129
@ -4,8 +4,9 @@ use ares_macros::tas;
|
|||||||
use either::Either::{self, Left, Right};
|
use either::Either::{self, Left, Right};
|
||||||
use std::ptr::null_mut;
|
use std::ptr::null_mut;
|
||||||
|
|
||||||
// const A_50: Either<u8, (u64, u64)> = Right((tas!(b"a"), 50));
|
/** Root for Hoon %k.139
|
||||||
const K_139: Either<&[u8], (u64, u64)> = Right((tas!(b"k"), 139));
|
*/
|
||||||
|
pub const K_139: Either<&[u8], (u64, u64)> = Right((tas!(b"k"), 139));
|
||||||
|
|
||||||
// // This is the const state all in one spot as literals
|
// // This is the const state all in one spot as literals
|
||||||
// #[allow(clippy::complexity)]
|
// #[allow(clippy::complexity)]
|
||||||
@ -57,6 +58,10 @@ const K_139: Either<&[u8], (u64, u64)> = Right((tas!(b"k"), 139));
|
|||||||
// (&[A_50, Left(b"mink")], 1, jet_mink),
|
// (&[A_50, Left(b"mink")], 1, jet_mink),
|
||||||
// ];
|
// ];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (path, axis in battery, jet function pointer)
|
||||||
|
* see the [Jet] typedef in ares::jets for the proper prototype
|
||||||
|
*/
|
||||||
pub type HotEntry = (&'static [Either<&'static [u8], (u64, u64)>], u64, Jet);
|
pub type HotEntry = (&'static [Either<&'static [u8], (u64, u64)>], u64, Jet);
|
||||||
|
|
||||||
#[allow(clippy::complexity)]
|
#[allow(clippy::complexity)]
|
||||||
|
Loading…
Reference in New Issue
Block a user