mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Update comment.
This commit is contained in:
@@ -518,9 +518,11 @@ Returns:
|
|||||||
- The `count`, enumerated using the `method`, which will be `0` if the type is not a struct
|
- The `count`, enumerated using the `method`, which will be `0` if the type is not a struct
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
expected_count := reflect.struct_field_count(Game_API) - API_PRIVATE_COUNT
|
symbols_loaded, ok := dynlib.initialize_symbols(&game_api, "game.dll")
|
||||||
if symbols_loaded != expected_count {
|
symbols_expected := reflect.struct_field_count(Game_Api) - API_PRIVATE_COUNT
|
||||||
fmt.eprintf("Expected %v symbols, got %v", expected_count, symbols_loaded)
|
|
||||||
|
if symbols_loaded != symbols_expected {
|
||||||
|
fmt.eprintf("Expected %v symbols, got %v", symbols_expected, symbols_loaded)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user