summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-23 22:01:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-23 22:01:44 +0300
commit3c404128c4669a1f4f190e20a89553677717fc50 (patch)
tree2db4e5031089c800c4e00fd6244e578f44a7c910 /src/localconsts.h
parent89b267d6d73bbc59f7c313b8a22b97fbb27f99a8 (diff)
downloadplus-3c404128c4669a1f4f190e20a89553677717fc50.tar.gz
plus-3c404128c4669a1f4f190e20a89553677717fc50.tar.bz2
plus-3c404128c4669a1f4f190e20a89553677717fc50.tar.xz
plus-3c404128c4669a1f4f190e20a89553677717fc50.zip
Add missing comments into defines.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index c21070ba2..08f2efe40 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -122,11 +122,11 @@
#define A_CONST __attribute__ ((const))
#define A_PURE __attribute__ ((pure))
#define A_INLINE __attribute__ ((always_inline))
-#else
+#else // ENABLE_CILKPLUS
#define A_CONST
#define A_PURE
#define A_INLINE
-#endif
+#endif // ENABLE_CILKPLUS
#ifdef __INTEL_COMPILER
#define RETURNS_NONNULL
@@ -140,11 +140,11 @@
#ifndef ENABLE_CILKPLUS
#define A_NONNULL(...) __attribute__((nonnull (__VA_ARGS__)))
-#else
+#else // ENABLE_CILKPLUS
#define A_NONNULL(...)
-#endif
+#endif // ENABLE_CILKPLUS
-#else
+#else // __GNUC__
#define A_UNUSED
#define A_WARN_UNUSED
#define gnu_printf printf
@@ -153,14 +153,14 @@
#define restrict2
#define RETURNS_NONNULL
#define A_NONNULL(...)
-#endif
+#endif // __GNUC__
#ifdef __clang__
#define gnu_printf printf
-#endif
+#endif // __clang__
#ifdef ENABLE_CILKPLUS
#include <cilk/cilk.h>
-#endif
+#endif // ENABLE_CILKPLUS
#ifdef ADVGCC
#define const2 const
@@ -242,9 +242,9 @@
#ifdef ENABLE_CHECKPLUGIN
#define A_NONNULLPOINTER __attribute__((nonnullpointer))
-#else
+#else // ENABLE_CHECKPLUGIN
#define A_NONNULLPOINTER
-#endif
+#endif // ENABLE_CHECKPLUGIN
#ifdef ENABLE_CHECKS
@@ -261,24 +261,24 @@
#ifdef USE_SDL2
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch-default"
-#endif
+#endif // USE_SDL2
#include <SDL_version.h>
#ifdef USE_SDL2
#pragma GCC diagnostic pop
-#endif
+#endif // USE_SDL2
#if SDL_VERSION_ATLEAST(2, 0, 0)
#ifndef USE_SDL2
#warning using SDL2 headers but configure set to use SDL1.2
#warning please add configure flag --with-sdl2
#define USE_SDL2
-#endif
-#else
+#endif // USE_SDL2
+#else // SDL_VERSION_ATLEAST(2, 0, 0)
#ifdef USE_SDL2
#error using SDL1.2 headers but configure set to use SDL2
#error please remove configure flag --with-sdl2
-#endif
-#endif
+#endif // USE_SDL2
+#endif // SDL_VERSION_ATLEAST(2, 0, 0)
// #define DEBUG_CONFIG 1
// #define DEBUG_BIND_TEXTURE 1
@@ -316,9 +316,9 @@
#ifdef DYECMD
#undef USE_FUZZER
-#endif
+#endif // DYECMD
#include "utils/perfomance.h"
UTILS_PERFOMANCE_H // guard for protect previous include
#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
+#endif // HAVE_CONFIG_H