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. --- source/slang/compiler.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'source/slang/compiler.h') diff --git a/source/slang/compiler.h b/source/slang/compiler.h index 3f45ea5c7..89bb01738 100644 --- a/source/slang/compiler.h +++ b/source/slang/compiler.h @@ -150,21 +150,13 @@ namespace Slang // A directory to be searched when looking for files (e.g., `#include`) struct SearchDirectory { - enum Kind - { - Default, - AutoImport, - }; - SearchDirectory() = default; SearchDirectory(SearchDirectory const& other) = default; - SearchDirectory(String const& path, Kind kind) + SearchDirectory(String const& path) : path(path) - , kind(kind) {} String path; - Kind kind; }; class Session; -- cgit v1.2.3