On 2009/05/07 09:14:42, Søren Gjesse wrote: > On 2009/05/07 08:47:02, Lasse Reichstein wrote: > > On 2009/05/07 08:25:43, Mikhail Naganov wrote: > > > Are you sure that "%p" doesn't also print "0x" on Linux? I've just checked > > that > > > under gcc 4.0.3 it does. > > > > Not sure at all. > > > > > > > > The inconsitency between Windows and Linux behavior on interpreting %p was > the > > > main reason of using "%x" which works everywhere the same. > > > > You are right. The problem is that "%x" is not sufficient to print a pointer > in > > 64-bit mode. > > > > Since Windows doesn't have inttypes.h, the simpest solution is probably to > > create a macro, V8PRIp, to print a pointer our way (which is either "x", "lx" > or > > "llx" depending on compiler and wordsize).
> LGTM, but where is V8PRIp defined? LGTM - found V8PRIp! http://codereview.chromium.org/114010 --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
