diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-04-17 17:26:24 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-04-17 17:26:24 +0200 |
| commit | 07c59cb4db0e026cc3d6e9f405b9d1eab0db4421 (patch) | |
| tree | dc006c3da61e1bd51f3e219eb1a594a4796036e7 /src/entity.cpp | |
| parent | 1c655b84e48446f581a16463bb6c4d84d7a4116b (diff) | |
Early out and propagate `nil` in `create*`
If allocation of a `^Thread` failed, `create*` now properly return `nil`,
so you can assert on that instead of calling `thread.destroy` on a null pointer, say.
Diffstat (limited to 'src/entity.cpp')
0 files changed, 0 insertions, 0 deletions