The V8_POINTER_PREFIX is a prefix to the "x". It could be dropped entirely,
since we only have one type of pointer display, but this way we can also
define a V8PRId as the prefix followed by "d" to print pointers as decimal.
The "%" is not included in the format to use the same strategy as the
PRI-macros in C99 inttypes.h. It allows, should one want it, to use a format
like "%20"V8PRIp.

/L

On Thu, May 7, 2009 at 11:58 AM, <[email protected]> wrote:

>
> http://codereview.chromium.org/114010/diff/2002/2003
> File src/globals.h (right):
>
> http://codereview.chromium.org/114010/diff/2002/2003#newcode89
> Line 89: #define V8PRIp V8_PTR_PREFIX "x"
> Certainly prefix is the wrong name; since it goes after the '%' it must
> be a suffix.
>
>
> http://codereview.chromium.org/114010
>



-- 
Lasse R.H. Nielsen
[email protected]
'Faith without judgement merely degrades the spirit divine'

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to