mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: add V64_PRINTFORMAT (part 1)
This commit is contained in:
parent
1ab830da4b
commit
2700fd712b
@ -27,6 +27,19 @@ const (
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define OPTION_CAST(x) (x)
|
#define OPTION_CAST(x) (x)
|
||||||
|
|
||||||
|
#ifndef V64_PRINTFORMAT
|
||||||
|
#ifdef PRIx64
|
||||||
|
#define V64_PRINTFORMAT "0x%"PRIx64
|
||||||
|
#elif defined(__WIN32__)
|
||||||
|
#define V64_PRINTFORMAT "0x%I64x"
|
||||||
|
#elif defined(__LINUX__) && defined(__LP64__)
|
||||||
|
#define V64_PRINTFORMAT "0x%lx"
|
||||||
|
#else
|
||||||
|
#define V64_PRINTFORMAT "0x%llx"
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
'
|
'
|
||||||
c_headers = '
|
c_headers = '
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user