Browse Source

Internal doc fixes for #if(n)def

pull/1169/head
Sami Vaarala 8 years ago
parent
commit
7ac233a289
  1. 2
      doc/code-issues.rst
  2. 8
      doc/fastint.rst

2
doc/code-issues.rst

@ -364,7 +364,7 @@ convention is::
/* duk_foo.h */
#ifndef DUK_FOO_H_INCLUDED
#if !defined(DUK_FOO_H_INCLUDED)
#define DUK_FOO_H_INCLUDED
...

8
doc/fastint.rst

@ -209,7 +209,7 @@ A few notes on how fastints are used internally, what macros are used, etc.
Fastint aware vs. unware code
-----------------------------
Fastint support is optional and added between ifdefs::
Fastint support is optional and added between ``#if defined()`` guards::
#if defined(DUK_USE_FASTINT)
...
@ -354,9 +354,9 @@ that the value is fastint compatible) uses::
The macros are also available when fastints are disabled, and will just
write a double with no checks or additional overhead. This is just a
convenience to reduce the number of ifdefs in call sites. For example,
``DUK_TVAL_SET_FASTINT_U32`` coerces the uint32 argument to a double
when fastints are disabled.
convenience to reduce the number of ``#if defined()`` guards in call sites.
For example, ``DUK_TVAL_SET_FASTINT_U32`` coerces the uint32 argument to a
double when fastints are disabled.
In-place double-to-fastint downgrade check
------------------------------------------

Loading…
Cancel
Save