delete comments

main
serr 2025-01-15 18:37:41 +03:00
parent 54458e8b7c
commit 0da1e5fcbc
1 changed files with 0 additions and 7 deletions

View File

@ -9,22 +9,15 @@ typedef unsigned char byte;
byte* AF_address(byte* f) {
byte* real_address = NULL;
#ifdef _MSC_VER // MSVC
//printf("MSVC Compiler Detected\n");
#ifdef NDEBUG // MSVC release mode
real_address = f;
//printf("FUNCTION ADDRESS: %p\n", real_address);
#else // MSVC debug mode
byte* f_p = f;
byte* offset = (byte*)(*((int*)f_p) >> 8);
real_address = f_p + (int)offset + 5;
//printf("TABLE ADDRESS: %p\n", f_p);
//printf("OFFSET: %p\n", offset);
//printf("REAL ADDRESS: %p\n", real_address);
#endif
#elif defined(__GNUC__) // GCC
//printf("GCC Compiler Detected\n");
real_address = f;
//printf("FUNCTION ADDRESS: %p\n", real_address);
#endif
return real_address;
}