From c1b30ac323e838850aaf9526adc7138720a01958 Mon Sep 17 00:00:00 2001 From: Terik23 Date: Sat, 17 Mar 2018 21:22:18 +0500 Subject: [PATCH] Add new case --- example/example.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/example/example.cpp b/example/example.cpp index 7cfac34..0ebce71 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -49,6 +49,7 @@ int main() { Long otherVar{2}; int innValue{3}; SomeStruct* ptrVar = &someVar; + SomeStruct** ptrptrVar = &ptrVar; constexpr auto constexpr_work_fine = NAMEOF_VAR(innValue); std::cout << constexpr_work_fine << std::endl; @@ -68,6 +69,9 @@ int main() { std::cout << NAMEOF_VAR(&someVar) << std::endl; // someVar std::cout << NAMEOF_VAR(ptrVar) << std::endl; // ptrVar std::cout << NAMEOF_VAR(*ptrVar) << std::endl; // ptrVar + std::cout << NAMEOF_VAR(ptrptrVar) << std::endl; // ptrptrVar + std::cout << NAMEOF_VAR(*ptrptrVar) << std::endl; // ptrptrVar + std::cout << NAMEOF_VAR(**ptrptrVar) << std::endl; // ptrptrVar std::cout << NAMEOF_VAR(+innValue) << std::endl; // innValue std::cout << NAMEOF_VAR(-innValue) << std::endl; // innValue std::cout << NAMEOF_VAR(~innValue) << std::endl; // innValue