Skip to content

Commit 1ffc847

Browse files
committed
missing file for lesson 21
1 parent a63c1b4 commit 1ffc847

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

21-shell/libc/function.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef FUNCTION_H
2+
#define FUNCTION_H
3+
4+
/* Sometimes we want to keep parameters to a function for later use
5+
* and this is a solution to avoid the 'unused parameter' compiler warning */
6+
#define UNUSED(x) (void)(x)
7+
8+
#endif

0 commit comments

Comments
 (0)