diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-09-02 15:26:34 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-09-02 15:26:34 -0400 |
commit | 8c18cfd22583e981f93734ec0aa6ee0ead3f26c5 (patch) | |
tree | f189b6e8d8a09ce0a3b17759c2e45c7383efb971 /indra/linux_crash_logger/llcrashloggerlinux.h | |
parent | 15db5010a0330bcb2ca2d0e4125ac3374f22b9cf (diff) |
Make `pairs()`, `ipairs()` forward to original funcs if no metamethods.
That is, our replacement `pairs()` forwards the call to built-in `pairs()`
when the passed object has no `__iter()` metamethod. Similarly, our
replacement `ipairs()` forwards to built-in `ipairs()` when the passed object
has no `__index()` metamethod.
This allows for the possibility that the built-in `pairs()` and `ipairs()`
functions engage more efficient implementations than the obvious ones.
Diffstat (limited to 'indra/linux_crash_logger/llcrashloggerlinux.h')
0 files changed, 0 insertions, 0 deletions