From 721f3d74eb20bbbbe7438c98adece47adc7e7a0b Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Tue, 3 Feb 2015 15:46:52 +0000 Subject: [PATCH] headers: Explicitly error when you include an internal header People should not be using the dispatch/ headers directly. Try and make this more explicit. Signed-off-by: Karl Palsson --- include/libopencm3/dispatch/nvic.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/libopencm3/dispatch/nvic.h b/include/libopencm3/dispatch/nvic.h index 21ba33f4..644e27e3 100644 --- a/include/libopencm3/dispatch/nvic.h +++ b/include/libopencm3/dispatch/nvic.h @@ -1,3 +1,7 @@ +#ifndef LIBOPENCM3_NVIC_H +#error You should not be including this file directly, but +#endif + #if defined(STM32F0) # include #elif defined(STM32F1)