Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexander Hirsch
crap
Commits
4a887f26
Commit
4a887f26
authored
Sep 02, 2019
by
Alexander Hirsch
Browse files
Add typical assertion example
parent
1af16f1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
slides/c_slides.md
slides/c_slides.md
+11
-0
No files found.
slides/c_slides.md
View file @
4a887f26
...
...
@@ -335,6 +335,17 @@ void fun(int arr[10])
## Assertions
```
c
double
clamp
(
double
value
,
double
lower
,
double
upper
)
{
assert
(
lower
<=
upper
);
// …
}
```
---
```
c
struct
expression
*
expression_binary_op
(
enumbinary_op
op
,
struct
expression
*
lhs
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment