Factor out UNUSED macro to header file

This is so it can be used in other files without having to copy-paste
the define.
This commit is contained in:
Misa authored and Ethan Lee committed 2021-05-25 15:23:34 -04:00
1 parent 3bcb6938f7
commit 29d2637abd
2 files changed
+7 -2

No files matched your search

+1 -2
View File
@@ -1,8 +1,7 @@
#include <stdint.h>
#include "MakeAndPlay.h"
#define UNUSED(expr) (void)(expr)
#include "Unused.h"
#ifdef MAKEANDPLAY
#ifdef STEAM_NETWORK
+6
View File
@@ -0,0 +1,6 @@
#ifndef UNUSED_H
#define UNUSED_H
#define UNUSED(expr) (void)(expr)
#endif /* UNUSED_H */