22 lines · 557 B · C
RawDownload
#ifndef _PERF_ASM_GENERIC_BUG_H#define _PERF_ASM_GENERIC_BUG_H #define __WARN_printf(arg...)	do { fprintf(stderr, arg); } while (0) #define WARN(condition, format...) ({		\	int __ret_warn_on = !!(condition);	\	if (unlikely(__ret_warn_on))		\		__WARN_printf(format);		\	unlikely(__ret_warn_on);		\}) #define WARN_ONCE(condition, format...)	({	\	static int __warned;			\	int __ret_warn_once = !!(condition);	\						\	if (unlikely(__ret_warn_once))		\		if (WARN(!__warned, format)) 	\			__warned = 1;		\	unlikely(__ret_warn_once);		\})#endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t