MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / jcontRemove

Method jcontRemove

source/core/StarLua.cpp:1496–1503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1494
1495
1496void LuaDetail::jcontRemove(LuaTable const& table, LuaValue const& key) {
1497 if (auto mt = table.getMetatable()) {
1498 if (auto nils = mt->rawGet<Maybe<LuaTable>>("__nils"))
1499 nils->rawSet(key, LuaNil);
1500 }
1501
1502 table.rawSet(key, LuaNil);
1503}
1504
1505size_t LuaDetail::jcontSize(LuaTable const& table) {
1506 size_t elemCount = 0;

Callers

nothing calls this directly

Calls 2

getMetatableMethod · 0.80
rawSetMethod · 0.80

Tested by

no test coverage detected