Prechádzať zdrojové kódy

missing file for lesson 21

Carlos 10 rokov pred
rodič
commit
1ffc847737
1 zmenil súbory, kde vykonal 8 pridanie a 0 odobranie
  1. 8 0
      21-shell/libc/function.h

+ 8 - 0
21-shell/libc/function.h

@@ -0,0 +1,8 @@
+#ifndef FUNCTION_H
+#define FUNCTION_H
+
+/* Sometimes we want to keep parameters to a function for later use
+ * and this is a solution to avoid the 'unused parameter' compiler warning */
+#define UNUSED(x) (void)(x)
+
+#endif