From 17ebaffce8f97b895c651bf57567b13f2685f849 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Mon, 5 Aug 2024 22:12:22 +0200 Subject: [PATCH] Update comment. --- core/reflect/reflect.odin | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/reflect/reflect.odin b/core/reflect/reflect.odin index 9a5551d42..aff82136a 100644 --- a/core/reflect/reflect.odin +++ b/core/reflect/reflect.odin @@ -518,9 +518,11 @@ Returns: - The `count`, enumerated using the `method`, which will be `0` if the type is not a struct Example: - expected_count := reflect.struct_field_count(Game_API) - API_PRIVATE_COUNT - if symbols_loaded != expected_count { - fmt.eprintf("Expected %v symbols, got %v", expected_count, symbols_loaded) + symbols_loaded, ok := dynlib.initialize_symbols(&game_api, "game.dll") + symbols_expected := reflect.struct_field_count(Game_Api) - API_PRIVATE_COUNT + + if symbols_loaded != symbols_expected { + fmt.eprintf("Expected %v symbols, got %v", symbols_expected, symbols_loaded) return } */