diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-26 09:32:40 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-26 12:06:54 -0700 |
| commit | 7d3bfe403362b294cc2a1f2607d51dfcd447aafd (patch) | |
| tree | 4dac8dcdb29a0d8e74f78f12c0bbe63e669b2b0c /slang.h | |
| parent | 3f316dcbd9274efc74f817cf36f17a511ff2e21e (diff) | |
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.
Diffstat (limited to 'slang.h')
| -rw-r--r-- | slang.h | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -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. |
