mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-03 05:49:41 +03:00
First steps
This commit is contained in:
@@ -226,8 +226,12 @@ extern "C" byte *GetStackPtr64();
|
||||
#if defined(__llvm__) || defined(__clang__)
|
||||
#define GetStackPtr( pStackPtr ) byte *pStackPtr = (byte*)__builtin_frame_address(0)
|
||||
#else
|
||||
#if defined(__arm__)
|
||||
#define GetStackPtr( pStackPtr ) byte *pStackPtr = (byte*)__builtin_frame_address(0)
|
||||
#else
|
||||
#define GetStackPtr( pStackPtr ) register byte *pStackPtr __asm__( "esp" )
|
||||
#endif
|
||||
#endif
|
||||
#elif defined(__SNC__)
|
||||
#define GetStackPtr( pStackPtr ) byte *pStackPtr = (byte*)__builtin_frame_address(0)
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user