summaryrefslogtreecommitdiff
path: root/source/core/slang-writer.h
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-01-04 20:01:42 +0800
committerGitHub <noreply@github.com>2023-01-04 20:01:42 +0800
commit57e9786d69f7d7846a289f5d2ce8a34c5f177e93 (patch)
treeba76411d2925c72ce682d437c2af7069df83264a /source/core/slang-writer.h
parent6dbdb74dbdc20783a0429229c21604a3d08d28f8 (diff)
Add format checking attributes on printf-like functions (#2570)
* Add format checking attributes on printf-like functions * Don't use printf format attributes on msvc Where they are not supported
Diffstat (limited to 'source/core/slang-writer.h')
-rw-r--r--source/core/slang-writer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/core/slang-writer.h b/source/core/slang-writer.h
index ccdcb3747..2a86af629 100644
--- a/source/core/slang-writer.h
+++ b/source/core/slang-writer.h
@@ -16,6 +16,7 @@ namespace Slang
class WriterHelper
{
public:
+ SLANG_ATTR_PRINTF(2, 3)
SlangResult print(const char* format, ...);
SlangResult put(const char* text);
SlangResult put(const UnownedStringSlice& text);