Include order: why must hal.h be included before hal_accelerometer.h, etc.?
Posted: Fri Oct 12, 2018 9:18 pm
I notice that hal_sensors.h does not include anything that provides _base_object_methods . Therefore, hal.h must be included before anything that inherits from hal_sensors.h . What is the reasoning behind this, or is this an oversight?
I normally organize my includes starting with "most local" first and "most global" see the accepted answer here for reasoning: https://stackoverflow.com/questions/276 ... -practices . Does Chibi have different guidance on this issue?
I normally organize my includes starting with "most local" first and "most global" see the accepted answer here for reasoning: https://stackoverflow.com/questions/276 ... -practices . Does Chibi have different guidance on this issue?