Closed chantra closed 4 weeks ago
A macro which is not defined will default to 0, this can make it challenging to debug issues as the compiler will happily go ahead and treat an undefined macro to 0.
Here is an example case where it caught an issue: https://github.com/bpftrace/bpftrace/pull/2950/commits/a0eefb6491431d90457c38107a7724f4303e8312
cc @yonghong-song as we were discussing this f2f.
A macro which is not defined will default to 0, this can make it challenging to debug issues as the compiler will happily go ahead and treat an undefined macro to 0.
Here is an example case where it caught an issue: https://github.com/bpftrace/bpftrace/pull/2950/commits/a0eefb6491431d90457c38107a7724f4303e8312