mirror of
https://github.com/libretro/dolphin
synced 2024-11-04 20:43:51 -05:00
a9663669dc
Since C++17, non-member std::size() is present in the standard library which also operates on regular C arrays. Given that, we can just replace usages of ArraySize with that where applicable. In many cases, we can just change the actual C array ArraySize() was called on into a std::array and just use its .size() member function instead. In some other cases, we can collapse the loops they were used in, into a ranged-for loop, eliminating the need for en explicit bounds query.
13 lines
239 B
C++
13 lines
239 B
C++
// Copyright 2014 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include "Common/CommonFuncs.h"
|
|
|
|
TEST(CommonFuncs, CrashMacro)
|
|
{
|
|
EXPECT_DEATH({ Crash(); }, "");
|
|
}
|