mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Use custom macros for static assertions
This commit is contained in:
parent
d8b76b317b
commit
c61a18a200
8 changed files with 82 additions and 26 deletions
|
@ -59,7 +59,9 @@ pub enum TagName {
|
|||
Closure(Symbol),
|
||||
}
|
||||
|
||||
static_assertions::assert_eq_size!((usize, usize, u64), TagName);
|
||||
roc_error_macros::assert_sizeof_aarch64!(TagName, 24);
|
||||
roc_error_macros::assert_sizeof_wasm!(TagName, 16);
|
||||
roc_error_macros::assert_sizeof_default!(TagName, 24);
|
||||
|
||||
impl TagName {
|
||||
pub fn as_ident_str(&self, interns: &Interns, home: ModuleId) -> IdentStr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue