From 21a6648cdeaf2a7cf21896f8bbe89edadcb100f0 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 3 Mar 2025 15:16:50 +0000 Subject: [PATCH] Fix #4903 --- base/runtime/core.odin | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/runtime/core.odin b/base/runtime/core.odin index db5e4d698..cd7d35540 100644 --- a/base/runtime/core.odin +++ b/base/runtime/core.odin @@ -442,7 +442,9 @@ Raw_Any :: struct { data: rawptr, id: typeid, } -#assert(size_of(Raw_Any) == size_of(any)) +when !ODIN_NO_RTTI { + #assert(size_of(Raw_Any) == size_of(any)) +} Raw_Cstring :: struct { data: [^]byte,