diff options
author | metagn <metagngn@gmail.com> | 2024-10-03 20:35:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-03 19:35:21 +0200 |
commit | 89978b48baeed0c745d45d666a9786c8d9457581 (patch) | |
tree | b5cf3cf90d1913bbf492b09afa3157898555e57b /readme.md | |
parent | d6a71a10671b66ee4f5be09f99234b3d834e7fce (diff) | |
download | Nim-89978b48baeed0c745d45d666a9786c8d9457581.tar.gz |
use cbuilder for seq type generation (#24202)
`addSimpleStruct` is just so the compiler doesn't use so much extra computation on analyzing the `typ` parameter for `addStruct`, which doesn't change anything for `seq` types. We could probably still get away with using `addStruct` instead, or making `addStruct` accept `nil` as the `typ` argument but this would be even more computation. There were a lot of hidden issues with `addStruct` being a template & template argument substitution, so most of the behavior is moved into `startStruct`/`finishStruct` procs. This is turning out to be a lot of code for just a couple of changed lines, we might have to split `cbuilder` into multiple modules.
Diffstat (limited to 'readme.md')
0 files changed, 0 insertions, 0 deletions