ipc-cpp/3rdparty/capo/unused.hpp
2024-11-27 01:41:38 +08:00

23 lines
522 B
C++

/*
The Capo Library
Code covered by the MIT License
Author: mutouyun (http://orzz.org)
*/
#pragma once
////////////////////////////////////////////////////////////////
#ifdef CAPO_UNUSED_
# error "CAPO_UNUSED_ has been defined."
#endif
#if defined(_MSC_VER)
# define CAPO_UNUSED_ __pragma(warning(suppress: 4100 4101 4189))
#elif defined(__GNUC__)
# define CAPO_UNUSED_ __attribute__((__unused__))
#else
# define CAPO_UNUSED_
#endif
////////////////////////////////////////////////////////////////