Skip to content

Commit cdba85b

Browse files
authored
Fix version information, and use compound assignment operator (#20)
- Use compound assignment operator - Update copyright date - Update required version - Update expected version to match current version
1 parent 2317980 commit cdba85b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Eldred Habert
3+
Copyright (c) 2018-2024 Eldred Habert and contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ A [RGBDS](https://rgbds.gbdev.io) macro pack that provides `struct`-like functio
77
Please select a version from [the releases](https://github.com/ISSOtm/rgbds-structs/releases), and download either of the "source code" links.
88
(If you do not know what a `.tar.gz` file is, download the `.zip` one.)
99

10-
The [latest rgbds-structs version](https://github.com/ISSOtm/rgbds-structs/releases/latest) is **4.0.0**.
11-
It will only work with RGBDS 0.5.1 and newer.
10+
The [latest rgbds-structs version](https://github.com/ISSOtm/rgbds-structs/releases/latest) is **4.0.1**.
11+
It will only work with RGBDS 0.6.0 and newer.
1212
A previous version, [1.3.0](https://github.com/ISSOtm/rgbds-structs/releases/tag/v1.3.0), is confirmed to work with RGBDS 0.3.7, but should also work with versions 0.3.3 and newer.
1313
If you find a compatibility issue, [please file it here](https://github.com/ISSOtm/rgbds-structs/issues/new).
1414

examples/correct.asm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
INCLUDE "../structs.inc"
22

33
; Check for the expected RGBDS-structs version
4-
rgbds_structs_version 3.0.0
4+
rgbds_structs_version 4.0.1
55

66

77
; Struct declarations (ideally in a separate file, but grouped here for simplicity)

structs.inc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; MIT License
22
;
3-
; Copyright (c) 2018-2022 Eldred Habert and contributors
3+
; Copyright (c) 2018-2024 Eldred Habert and contributors
44
; Originally hosted at https://github.com/ISSOtm/rgbds-structs
55
;
66
; Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -23,7 +23,7 @@
2323

2424

2525

26-
DEF STRUCTS_VERSION equs "4.0.0"
26+
DEF STRUCTS_VERSION equs "4.0.1"
2727
MACRO structs_assert
2828
assert (\1), "rgbds-structs {STRUCTS_VERSION} bug. Please report at https://github.com/ISSOtm/rgbds-structs, and share the above stack trace *and* your code there!"
2929
ENDM
@@ -300,7 +300,7 @@ MACRO dstruct ; struct_type, instance_name[, ...]
300300
ENDC
301301
d{{STRUCT_FIELD_TYPE}} {FIELD_INITIALIZER}
302302
PURGE FIELD_INITIALIZER
303-
REDEF ARG_NUM = ARG_NUM + 1
303+
DEF ARG_NUM += 1
304304
ENDC
305305
; Add padding as necessary after the provided initializer
306306
; (possibly all of it, especially for RAM use)

0 commit comments

Comments
 (0)