mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof: fix category inheritance
Move the bit lower so we can use bitfields properly, and add an unmask helper to avoid all the 0xFF crap.
This commit is contained in:
@ -29,7 +29,8 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define SYSPROF_CALLGRAPH_CATEGORY_INHERIT (1<<30)
|
||||
#define SYSPROF_CALLGRAPH_CATEGORY_INHERIT (1 << 6)
|
||||
#define SYSPROF_CALLGRAPH_CATEGORY_UNMASK(c) (c & ~(SYSPROF_CALLGRAPH_CATEGORY_INHERIT))
|
||||
|
||||
typedef struct _SysprofCallgraphSummary
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user