gingerBill 6 months ago
parent
commit
21a6648cde
1 changed files with 3 additions and 1 deletions
  1. 3 1
      base/runtime/core.odin

+ 3 - 1
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,