MCPcopy Create free account
hub / github.com/adny-code/fastgrind / pop

Method pop

include/fastgrind.h:1178–1186  ·  view source on GitHub ↗

@brief Pop top of stack (must not be empty). */

Source from the content-addressed store, hash-verified

1176
1177 /** @brief Pop top of stack (must not be empty). */
1178 MEM_NO_INSTRUMENT const char *pop()
1179 {
1180 if (_offset == 0)
1181 return nullptr;
1182
1183 auto v = _stack[--_offset];
1184 _stackId -= size_t(v);
1185 return v;
1186 }
1187
1188 /** @return Current stack depth. */
1189 MEM_NO_INSTRUMENT unsigned depth() const

Callers 2

fastgrindMethod · 0.80
__cyg_profile_func_exitFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected