gingerBill 6 tháng trước cách đây
mục cha
commit
21a6648cde
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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,