mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-24 13:05:38 +05:00
line number in NETGEN_CHECK_SAME macro
This commit is contained in:
parent
6c3fcf0188
commit
cb7759cd0b
@ -92,10 +92,10 @@ namespace ngcore
|
|||||||
throw ngcore::RangeException(__FILE__ ":" NETGEN_CORE_NGEXEPTION_STR(__LINE__) "\t", int(value), int(min), int(max_plus_one)); }
|
throw ngcore::RangeException(__FILE__ ":" NETGEN_CORE_NGEXEPTION_STR(__LINE__) "\t", int(value), int(min), int(max_plus_one)); }
|
||||||
#define NETGEN_CHECK_SHAPE(a,b) \
|
#define NETGEN_CHECK_SHAPE(a,b) \
|
||||||
{ if(a.Shape() != b.Shape()) \
|
{ if(a.Shape() != b.Shape()) \
|
||||||
throw ngcore::Exception(__FILE__": shape don't match"); }
|
throw ngcore::Exception(__FILE__ ":" NETGEN_CORE_NGEXEPTION_STR(__LINE__) "\t: shape don't match"); }
|
||||||
#define NETGEN_CHECK_SAME(a,b) \
|
#define NETGEN_CHECK_SAME(a,b) \
|
||||||
{ if(a != b) \
|
{ if(a != b) \
|
||||||
throw ngcore::Exception(__FILE__": not the same, a="+ToString(a) + ", b="+ToString(b)); }
|
throw ngcore::Exception(__FILE__ ":" NETGEN_CORE_NGEXEPTION_STR(__LINE__) "\t: not the same, a="+ToString(a) + ", b="+ToString(b)); }
|
||||||
#define NETGEN_NOEXCEPT
|
#define NETGEN_NOEXCEPT
|
||||||
#else // defined(NETGEN_ENABLE_CHECK_RANGE) && !defined(__CUDA_ARCH__)
|
#else // defined(NETGEN_ENABLE_CHECK_RANGE) && !defined(__CUDA_ARCH__)
|
||||||
#define NETGEN_CHECK_RANGE(value, min, max)
|
#define NETGEN_CHECK_RANGE(value, min, max)
|
||||||
|
Loading…
Reference in New Issue
Block a user