Closed nshy closed 1 year ago
Example which gives the FP:
#define uptr_field_addr(obj, field) \ ({ \ (typeof(&((typeof(obj))0)->field)) \ ((char *)(obj) + (size_t)&((typeof(obj))0)->field); \ }) ERROR: Macro argument 'field' may be better as '(field)' to avoid precedence issues
And using () around field won't compile.
field
Closes #43
Example which gives the FP:
And using () around
field
won't compile.Closes #43