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/token-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/token-defs.h') diff --git a/source/slang/token-defs.h b/source/slang/token-defs.h index f7800de55..0fe833e36 100644 --- a/source/slang/token-defs.h +++ b/source/slang/token-defs.h @@ -30,7 +30,7 @@ TOKEN(NewLine, "newline") TOKEN(LineComment, "line comment") TOKEN(BlockComment, "block comment") -TOKEN(AutoImport, "automatic import directive") +TOKEN(PoundImport, "'#import'") #define PUNCTUATION(id, text) \ TOKEN(id, "'" text "'") -- cgit v1.2.3