diff options
author | George Marques <george@gmarqu.es> | 2023-02-24 15:41:48 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2023-08-21 10:45:26 -0300 |
commit | 150b50cfcde95f74419ade2811d963224e96fc98 (patch) | |
tree | 76ee4e0a50852cf1972a6f05cbe45c9750dbdb6a /platform/javascript/api/javascript_singleton.h | |
parent | 970be7afdc111ccc7459d7ef3560de70e6d08c80 (diff) | |
download | redot-engine-150b50cfcde95f74419ade2811d963224e96fc98.tar.gz |
Make freed object different than null in comparison operators
This is so everything is consistent, as a freed object is not equivalent
to `null` in general. The booleanization of a freed object still returns
`false` to work as an easy check for validity of objects. Similarly, the
negation of a freed object returns `true`.
Also makes freed objects different from each other (if they are not the
same reference).
Diffstat (limited to 'platform/javascript/api/javascript_singleton.h')
0 files changed, 0 insertions, 0 deletions