1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-01 18:43:33 +02:00

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 2021-05-20 14:12:51 -07:00 committed by Ethan Lee
parent 3bcb6938f7
commit 29d2637abd
2 changed files with 7 additions and 2 deletions

View File

@ -1,8 +1,7 @@
#include <stdint.h> #include <stdint.h>
#include "MakeAndPlay.h" #include "MakeAndPlay.h"
#include "Unused.h"
#define UNUSED(expr) (void)(expr)
#ifdef MAKEANDPLAY #ifdef MAKEANDPLAY
#ifdef STEAM_NETWORK #ifdef STEAM_NETWORK

View File

@ -0,0 +1,6 @@
#ifndef UNUSED_H
#define UNUSED_H
#define UNUSED(expr) (void)(expr)
#endif /* UNUSED_H */