summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llmaterial.cpp
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-09-02 15:26:34 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-09-02 15:26:34 -0400
commit8c18cfd22583e981f93734ec0aa6ee0ead3f26c5 (patch)
treef189b6e8d8a09ce0a3b17759c2e45c7383efb971 /indra/llprimitive/llmaterial.cpp
parent15db5010a0330bcb2ca2d0e4125ac3374f22b9cf (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/llprimitive/llmaterial.cpp')
0 files changed, 0 insertions, 0 deletions