libobs: Add OBS_COUNTOF for array count
parent
fd27ead2a7
commit
6f8b364565
|
@ -35,6 +35,8 @@ extern "C" {
|
|||
#define INT_CUR_LINE __LINE__
|
||||
#define FILE_LINE __FILE__ " (" S__LINE__ "): "
|
||||
|
||||
#define OBS_COUNTOF(x) (sizeof(x) / sizeof(x[0]))
|
||||
|
||||
enum {
|
||||
/**
|
||||
* Use if there's a problem that can potentially affect the program,
|
||||
|
|
Loading…
Reference in New Issue