From 618b4c7657f539e66f032cd40554798bc0d68f6d Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Sat, 1 Mar 2025 05:22:58 +0800 Subject: Resolve 'extern' types during type layout generation if possible (#6450) * Resolve 'extern' types during type layout generation if possible Closes https://github.com/shader-slang/slang/issues/5994 Closes https://github.com/shader-slang/slang/issues/6437 * format code --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> Co-authored-by: Yong He --- tools/unit-test/slang-unit-test.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/unit-test') diff --git a/tools/unit-test/slang-unit-test.h b/tools/unit-test/slang-unit-test.h index 3484b3020..8f0f0a445 100644 --- a/tools/unit-test/slang-unit-test.h +++ b/tools/unit-test/slang-unit-test.h @@ -95,3 +95,6 @@ typedef IUnitTestModule* (*UnitTestGetModuleFunc)(); #define SLANG_IGNORE_TEST \ getTestReporter()->addResult(TestResult::Ignored); \ throw AbortTestException(); +#define SLANG_CHECK_MSG(condition, message) \ + getTestReporter() \ + ->addResultWithLocation((condition), #condition " " message, __FILE__, __LINE__) -- cgit v1.2.3