We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4089e commit 6a43cd2Copy full SHA for 6a43cd2
1 file changed
docs/panic.md
@@ -5,10 +5,12 @@ is a hard crash type of panic, not a regular type
5
of error.
6
7
The `control.panic` implementation is written like this in the runtime.
8
-TypeScript: ``` ts
+TypeScript:
9
+``` ts
10
export function panic(code: number) {
11
U.userError("PANIC! Code " + code) // throw a panic code to the problems pane
12
}
13
+```
14
15
C++:
16
``` cpp
0 commit comments