aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2021-05-06 13:23:17 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2021-05-06 13:23:17 +0200
commit03862d1f48a62d1ab9445050a6f3a3b8d0323f88 (patch)
tree8328fda063c8425b115c173e40432e517e37bf1d /src/check_expr.cpp
parent15ce8b0454c0a1f149ae92cc6670e3b7a5b94132 (diff)
Mark mem.slice_ptr_to_bytes as deprecated.
Use byte_slice instead. We can't make it an alias *and* mark it as deprecated, regrettably: ```odin byte_slice :: #force_inline proc "contextless" (data: rawptr, len: int) -> []byte { return transmute([]u8)Raw_Slice{data=data, len=max(len, 0)}; } @(deprecated="use byte_slice") slice_ptr_to_bytes :: byte_slice; "mem.odin(145:1) Constant alias declarations cannot have attributes" ```
Diffstat (limited to 'src/check_expr.cpp')
0 files changed, 0 insertions, 0 deletions