MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / ismemory

Function ismemory

lib/library.h:131–133  ·  view source on GitHub ↗

is allocation type memory? */

Source from the content-addressed store, hash-verified

129
130 /** is allocation type memory? */
131 static bool ismemory(const int id) {
132 return ((id > 0) && ((id & 1) == 0));
133 }
134 static bool ismemory(const AllocFunc* const func) {
135 return func && (func->groupId > 0) && ((func->groupId & 1) == 0);
136 }

Callers 7

loadMethod · 0.85
getAllocationTypeMethod · 0.85
getReallocationTypeMethod · 0.85
getDeallocationTypeMethod · 0.85
memoryMethod · 0.85

Calls

no outgoing calls

Tested by 1

memoryMethod · 0.68