MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / exchangehashpart

Function exchangehashpart

extlibs/lua/src/ltable.c:483–493  ·  view source on GitHub ↗

** Exchange the hash part of 't1' and 't2'. */

Source from the content-addressed store, hash-verified

481** Exchange the hash part of 't1' and 't2'.
482*/
483static void exchangehashpart (Table *t1, Table *t2) {
484 lu_byte lsizenode = t1->lsizenode;
485 Node *node = t1->node;
486 Node *lastfree = t1->lastfree;
487 t1->lsizenode = t2->lsizenode;
488 t1->node = t2->node;
489 t1->lastfree = t2->lastfree;
490 t2->lsizenode = lsizenode;
491 t2->node = node;
492 t2->lastfree = lastfree;
493}
494
495
496/*

Callers 1

luaH_resizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected