From aef12f7ee3d9f36df2ba2917e1eca0ac65493e3a Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 13 Jul 2019 19:08:57 +0100 Subject: [PATCH] [util] Add countof helper --- src/util/util_misc.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/util/util_misc.h diff --git a/src/util/util_misc.h b/src/util/util_misc.h new file mode 100644 index 000000000..ea9782f99 --- /dev/null +++ b/src/util/util_misc.h @@ -0,0 +1,8 @@ +#pragma once + +namespace dxvk { + + template + size_t countof(const T(&)[n]) { return n; } + +} \ No newline at end of file