Rename test_compiles.c to test_multiple_files.c

This commit is contained in:
Petteri Aimonen
2012-11-16 09:33:11 +02:00
parent cc29958d34
commit 59788e2aab
3 changed files with 6 additions and 4 deletions

4
pb.h
View File

@@ -24,7 +24,9 @@
#define UNUSED(x) (void)(x)
#endif
/* Compile-time assertion, used for checking compatible compilation options. */
/* Compile-time assertion, used for checking compatible compilation options.
* If this fails on your compiler for some reason, use #define STATIC_ASSERT
* to disable it. */
#ifndef STATIC_ASSERT
#define STATIC_ASSERT(COND,MSG) typedef char STATIC_ASSERT_MSG(MSG, __LINE__, __COUNTER__)[(COND)?1:-1];
#define STATIC_ASSERT_MSG(MSG, LINE, COUNTER) STATIC_ASSERT_MSG_(MSG, LINE, COUNTER)