mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
zig.h: Implement zig_frame_address() with _AddressOfReturnAddress() for MSVC.
This commit is contained in:
parent
37538f19cd
commit
062feb6c82
@ -376,6 +376,8 @@ typedef char bool;
|
||||
|
||||
#if zig_has_builtin(frame_address) || defined(zig_gnuc) || defined(zig_tinyc)
|
||||
#define zig_frame_address() __builtin_frame_address(0)
|
||||
#elif defined(zig_msvc)
|
||||
#define zig_frame_address() _AddressOfReturnAddress()
|
||||
#else
|
||||
#define zig_frame_address() 0
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user