From f447b74991e37bba6c8d1f69983fc308dd94e90b Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Sat, 17 Aug 2024 01:20:00 +0800 Subject: Update documentation for #include to indicate it is for legacy code and new code should use modules (#4862) Closes https://github.com/shader-slang/slang/issues/4281 --- docs/user-guide/02-conventional-features.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/user-guide/02-conventional-features.md b/docs/user-guide/02-conventional-features.md index bd8f0435c..ff29d7c83 100644 --- a/docs/user-guide/02-conventional-features.md +++ b/docs/user-guide/02-conventional-features.md @@ -492,6 +492,11 @@ Slang supports a C-style preprocessor with the following directives; Variadic macros are supported by the Slang preprocessor. +> #### Note #### +> The use of `#include` in new code is discouraged as this functionality has +> been superseded by the module system, please refer to +> [./04-modules-and-access-control.md](./04-modules-and-access-control.md) + Attributes ---------- -- cgit v1.2.3