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

Function isresource

lib/library.h:139–141  ·  view source on GitHub ↗

is allocation type resource? */

Source from the content-addressed store, hash-verified

137
138 /** is allocation type resource? */
139 static bool isresource(const int id) {
140 return ((id > 0) && ((id & 1) == 1));
141 }
142 static bool isresource(const AllocFunc* const func) {
143 return func && (func->groupId > 0) && ((func->groupId & 1) == 1);
144 }

Callers 4

loadMethod · 0.85
leakErrorMethod · 0.85
doubleFreeErrorMethod · 0.85
resourceMethod · 0.85

Calls

no outgoing calls

Tested by 1

resourceMethod · 0.68