mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 09:15:35 +00:00
compiler: Add glue macros for MSVC
This commit is contained in:
parent
3d4f37b78f
commit
65e5d72a94
|
@ -70,6 +70,13 @@
|
|||
#define unlikely(x) (x)
|
||||
#endif
|
||||
|
||||
#ifndef glue
|
||||
#define xglue(x, y) x ## y
|
||||
#define glue(x, y) xglue(x, y)
|
||||
#define stringify(s) tostring(s)
|
||||
#define tostring(s) #s
|
||||
#endif
|
||||
|
||||
#define sizeof_field(type, field) sizeof(((type *)0)->field)
|
||||
|
||||
static double rint( double x )
|
||||
|
|
Loading…
Reference in a new issue