diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-05-06 13:23:17 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-05-06 13:23:17 +0200 |
| commit | 03862d1f48a62d1ab9445050a6f3a3b8d0323f88 (patch) | |
| tree | 8328fda063c8425b115c173e40432e517e37bf1d /src/main.cpp | |
| parent | 15ce8b0454c0a1f149ae92cc6670e3b7a5b94132 (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/main.cpp')
0 files changed, 0 insertions, 0 deletions