From d8969d87dcc9eea3f186a0c93c5e48d3d1659e05 Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:59:17 -0700 Subject: Replace stdlib with core-module on files and projects (#5411) This commit renames the files and projects to prefer "core-module" over "stdlib". The directory name `source/slang-stdlib` needs to be renamed too, and there will be another commit for it soon. --- source/slang/slang-stdlib.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 source/slang/slang-stdlib.cpp (limited to 'source/slang/slang-stdlib.cpp') diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp deleted file mode 100644 index e28d95ad5..000000000 --- a/source/slang/slang-stdlib.cpp +++ /dev/null @@ -1,27 +0,0 @@ -// slang-stdlib.cpp - -#include "slang-compiler.h" -#include "slang-ir.h" -#include "../core/slang-string-util.h" - -#define STRINGIZE(x) STRINGIZE2(x) -#define STRINGIZE2(x) #x -#define LINE_STRING STRINGIZE(__LINE__) - -namespace Slang -{ - String Session::getStdlibPath() - { - if(stdlibPath.getLength() == 0) - { - // Make sure we have a line of text from __FILE__, that we'll extract the filename from - List lines; - StringUtil::calcLines(UnownedStringSlice::fromLiteral(__FILE__), lines); - SLANG_ASSERT(lines.getCount() > 0 && lines[0].getLength() > 0); - - // Make the path just the filename to remove issues around path being included on different targets - stdlibPath = Path::getFileName(lines[0]); - } - return stdlibPath; - } -} -- cgit v1.2.3