123456789101112131415161718192021 |
- use steel::*;
- #[repr(u8)]
- #[derive(Clone, Copy, Debug, Eq, PartialEq, TryFromPrimitive)]
- pub enum ReallocInstruction {
- Initialize = 0,
- Add = 1
- }
- #[repr(C)]
- #[derive(Clone, Copy, Debug, Pod, Zeroable)]
- pub struct Initialize {}
- #[repr(C)]
- #[derive(Clone, Copy, Debug, Pod, Zeroable)]
- pub struct Add {
- pub amount: [u8; 8]
- }
- instruction!(ReallocInstruction, Initialize);
- instruction!(ReallocInstruction, Add);
|