mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-14 23:33:28 +00:00
Add error message to pointer size check assert in lib/nimbase.h (#19549)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user