1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[util] Add countof helper

This commit is contained in:
Joshua Ashton 2019-07-13 19:08:57 +01:00 committed by Philip Rebohle
parent d4cad9055c
commit aef12f7ee3

8
src/util/util_misc.h Normal file
View File

@ -0,0 +1,8 @@
#pragma once
namespace dxvk {
template <typename T, size_t n>
size_t countof(const T(&)[n]) { return n; }
}