libobs: Add OBS_COUNTOF for array count

master
jpark37 2022-03-22 21:59:52 -07:00 committed by Jim
parent fd27ead2a7
commit 6f8b364565
1 changed files with 2 additions and 0 deletions

View File

@ -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,