diff options
Diffstat (limited to 'src/cairo-compiler-private.h')
-rw-r--r--[-rwxr-xr-x] | src/cairo-compiler-private.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/cairo-compiler-private.h b/src/cairo-compiler-private.h index f3e971ebb..216e71b4e 100755..100644 --- a/src/cairo-compiler-private.h +++ b/src/cairo-compiler-private.h @@ -221,16 +221,14 @@ be needed for GCC but it seems fine for now. */ #define CAIRO_ENSURE_UNIQUE \ do { \ - char func[] = __FUNCTION__; \ char file[] = __FILE__; \ __asm { \ __asm jmp __internal_skip_line_no \ - __asm _emit (__LINE__ & 0xff) \ - __asm _emit ((__LINE__>>8) & 0xff) \ - __asm _emit ((__LINE__>>16) & 0xff) \ - __asm _emit ((__LINE__>>24) & 0xff) \ - __asm lea eax, func \ - __asm lea eax, file \ + __asm _emit (__COUNTER__ & 0xff) \ + __asm _emit ((__COUNTER__>>8) & 0xff) \ + __asm _emit ((__COUNTER__>>16) & 0xff)\ + __asm _emit ((__COUNTER__>>24) & 0xff)\ + __asm lea eax, dword ptr file \ __asm __internal_skip_line_no: \ }; \ } while (0) |