mclangc/include/int.mcl

15 lines
412 B
Plaintext
Raw Normal View History

const NULL 0 end
const false 0 end
const true 1 end
2023-04-13 10:38:20 +00:00
inline fn div with int int returns int then divmod drop done
inline fn mod with int int returns int then divmod swap drop done
2023-04-13 10:38:20 +00:00
inline fn dup2 with any any returns any any any any then over over done
inline fn drop2 with any any returns void then drop drop done
const sizeof(u64) 8 end
const sizeof(u32) 4 end
const sizeof(u16) 2 end
const sizeof(u8) 1 end