Commit e6a3537
feat: expose Zstd.versionNumber() (#16)
* refactor: make NativeCall.requireNative return void
Every caller uses it as a guard statement and discards the returned
segment, so the fluent return was dead. Drop it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* feat: expose Zstd.versionNumber()
Wire up the previously-unused VERSION_NUMBER binding as a public
int Zstd.versionNumber() (MAJOR*10000 + MINOR*100 + PATCH, e.g. 10507
for 1.5.7), paralleling version() for programmatic version checks. Test
asserts it stays consistent with the version() string.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 18b8ace commit e6a3537
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
230 | 242 | | |
231 | 243 | | |
232 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
138 | 153 | | |
139 | 154 | | |
0 commit comments