mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-08-18 17:17:39 +08:00
11 lines
239 B
C
11 lines
239 B
C
#include <stdio.h>
|
|
#include <stdbool.h>
|
|
#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
|
|
int main()
|
|
{
|
|
BUILD_BUG_ON(0==0);
|
|
bool zero = false;
|
|
printf("%d\n", !!zero);
|
|
printf("%d\n", !zero);
|
|
return 0;
|
|
} |