diff options
author | Tomohiro <gpuppur@gmail.com> | 2022-02-27 23:36:16 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 15:36:16 +0100 |
commit | c870ff5946731dd1deff828abfe07c1900a5b364 (patch) | |
tree | 8bf18860e9f6484e3e87ac91d07fb3fd062d9cbe /lib/nimbase.h | |
parent | c2c9fbd7458db7adb515aad30cfe65b98fba47bf (diff) | |
download | Nim-c870ff5946731dd1deff828abfe07c1900a5b364.tar.gz |
Add error message to pointer size check assert in lib/nimbase.h (#19549)
Diffstat (limited to 'lib/nimbase.h')
-rw-r--r-- | lib/nimbase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nimbase.h b/lib/nimbase.h index a83bd3006..e4dec0dd2 100644 --- a/lib/nimbase.h +++ b/lib/nimbase.h @@ -547,7 +547,7 @@ static inline void GCGuard (void *ptr) { asm volatile ("" :: "X" (ptr)); } #endif // Test to see if Nim and the C compiler agree on the size of a pointer. -NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, ""); +NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "Pointer size mismatch between Nim and C/C++ backend. You probably need to setup the backend compiler for target CPU."); #ifdef USE_NIM_NAMESPACE } |