Skip to content

Commit 484770e

Browse files
authored
Add example for fatal error C1012
1 parent 3479df2 commit 484770e

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
---
2-
description: "Learn more about: Fatal Error C1012"
32
title: "Fatal Error C1012"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Fatal Error C1012"
4+
ms.date: "02/20/2025"
55
f1_keywords: ["C1012"]
66
helpviewer_keywords: ["C1012"]
7-
ms.assetid: 92cc83a7-b5b8-4da8-a128-9b7ccb510496
87
---
98
# Fatal Error C1012
109

11-
unmatched parenthesis : missing character
10+
unmatched parenthesis: missing 'character'
1211

1312
The parentheses in a preprocessor directive do not match.
13+
14+
The following sample generates C1012:
15+
16+
```cpp
17+
// C1012.cpp
18+
// compile with: /c
19+
#if (0 // C1012
20+
#endif
21+
```

0 commit comments

Comments
 (0)