MCPcopy Create free account
hub / github.com/ThePhD/sol2 / default_size

Function default_size

include/sol/stack_core.hpp:1382–1385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1380
1381 template <typename T>
1382 int default_size(lua_State* L) {
1383 decltype(auto) self = stack::unqualified_get<T>(L, 1);
1384 return stack::push(L, self.size());
1385 }
1386
1387 template <typename T, typename Op>
1388 int comparsion_operator_wrap(lua_State* L) {

Callers

nothing calls this directly

Calls 2

pushFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected