[Mesa-dev] [PATCH 05/10] nir: error when directly including nir_intrinsics.h
Emil Velikov
emil.l.velikov at gmail.com
Wed Oct 7 03:11:32 PDT 2015
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/glsl/nir/nir_intrinsics.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/glsl/nir/nir_intrinsics.h b/src/glsl/nir/nir_intrinsics.h
index 263d8c1..3bc74ec 100644
--- a/src/glsl/nir/nir_intrinsics.h
+++ b/src/glsl/nir/nir_intrinsics.h
@@ -39,6 +39,10 @@
* for each intrinsic.
*/
+#ifndef NIR_H
+#error "Must not be included directly. Include nir.h instead"
+#endif /* NIR_H */
+
#define ARR(...) { __VA_ARGS__ }
--
2.5.0
More information about the mesa-dev
mailing list