From 7d3bfe403362b294cc2a1f2607d51dfcd447aafd Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Mon, 26 Jun 2017 09:32:40 -0700 Subject: Replace "auto-import" with `#import` Right now `#import` only differs from `#include` in that it takes a string literal for a file name instead of a raw identifier (to which `.slang` gets appended). The next step is to make `#import` respect preprocessor state, while `__import` doesn't. --- slang.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'slang.h') diff --git a/slang.h b/slang.h index 91347d024..91b9f5931 100644 --- a/slang.h +++ b/slang.h @@ -204,16 +204,6 @@ extern "C" const char* searchDir); /*! - @brief Add a path to use when searching for referenced files, that automatically treats `#include` as `__import` - This behaves just like `spAddSearchPath()` except that any `#include` file found through this path - will be treated as if it was referenced with `__import`. - @param ctx The compilation context. - @param searchDir The additional search directory. - */ - SLANG_API void spAddAutoImportPath( - SlangCompileRequest* request, - const char* searchDir); - /*! @brief Add a macro definition to be used during preprocessing. @param key The name of the macro to define. @param value The value of the macro to define. -- cgit v1.2.3