Add @(require_results) to package reflect

This commit is contained in:
gingerBill
2023-01-29 11:28:05 +00:00
parent c45ca1bfcc
commit 8d43cc840a
3 changed files with 86 additions and 3 deletions
+2
View File
@@ -2,6 +2,7 @@ package reflect
import "core:runtime"
@(require_results)
iterate_array :: proc(val: any, it: ^int) -> (elem: any, index: int, ok: bool) {
if val == nil || it == nil {
return
@@ -41,6 +42,7 @@ iterate_array :: proc(val: any, it: ^int) -> (elem: any, index: int, ok: bool) {
return
}
@(require_results)
iterate_map :: proc(val: any, it: ^int) -> (key, value: any, ok: bool) {
if val == nil || it == nil {
return