diff options
author | Qyriad <qyriad@qyriad.me> | 2024-07-16 09:32:03 -0600 |
---|---|---|
committer | Qyriad <qyriad@qyriad.me> | 2024-07-20 20:20:01 +0000 |
commit | 72ee25b4025257fdaab7b8e8d5d1ccc83858fdab (patch) | |
tree | f2bc182d76deeec662c407647069348af4bf2331 /src/libexpr/value-to-xml.cc | |
parent | e67dac1d7493741cf88b411f68e31fc496179bf2 (diff) |
libexpr: add a strongly typed version of gcAllocBytes()
This commit adds a new helper template function to gc-alloc.hh (which is
probably where you want to look at first, O great reviewer [custom file
ordering in review diffs when]), which uses a type argument to determine
the size to allocate, rather than making the caller use sizeof().
Change-Id: Ib5d138d91a28bdda304a80db24ea9fb08669ad22
Diffstat (limited to 'src/libexpr/value-to-xml.cc')
0 files changed, 0 insertions, 0 deletions