Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22006

usage of !!, __warned and __ret_warn_once as int in WARN_ON_ONCE macro definition

$
0
0

I was going through the WARN_ON_ONCE macro definition. I have doubt regarding the following line, what is the use of !! before condition. If we remove !! then also same will be stored in __ret_warn_once.

int __ret_warn_once = !!(condition);

What will happen when compiler executing the following source line.

static bool __section(.data.unlikely) __warned;

Viewing all articles
Browse latest Browse all 22006

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>