define somefunction
This commit is contained in:
parent
b0ca30c7e5
commit
c88c45b3d1
1 changed files with 1 additions and 1 deletions
|
@ -938,7 +938,7 @@ TEST_CASE("nameof_member") {
|
||||||
|
|
||||||
#if defined(NAMEOF_POINTER_SUPPORTED) && NAMEOF_POINTER_SUPPORTED
|
#if defined(NAMEOF_POINTER_SUPPORTED) && NAMEOF_POINTER_SUPPORTED
|
||||||
|
|
||||||
int somefunction();
|
void somefunction() {}
|
||||||
|
|
||||||
TEST_CASE("NAMEOF_POINTER") {
|
TEST_CASE("NAMEOF_POINTER") {
|
||||||
REQUIRE(NAMEOF_POINTER(&SomeStruct::somestaticfield) == "somestaticfield");
|
REQUIRE(NAMEOF_POINTER(&SomeStruct::somestaticfield) == "somestaticfield");
|
||||||
|
|
Loading…
Reference in a new issue