diff --git a/doc/addon-tools.md b/doc/addon-tools.md index e36802e..42ab61a 100644 --- a/doc/addon-tools.md +++ b/doc/addon-tools.md @@ -32,7 +32,7 @@ within `Napi::Value`-returning functions.
-**Return value** +Return value * `RET_VALUE(VAL)`- return a given Napi::Value. * `RET_UNDEFINED`- return `undefined`. @@ -48,7 +48,7 @@ within `Napi::Value`-returning functions.
-**New JS value** +New JS value * `JS_STR(VAL)` - create a `Napi::String`, expected `VAL` is `const char *`. * `JS_NUM(VAL)` - create a `Napi::Number`, expected `VAL` is of numeric type. @@ -60,7 +60,7 @@ within `Napi::Value`-returning functions.
-**Method check** +Method check These checks throw JS `TypeError` if not passed. `T` is always used as a typename in error messages. `C` is a @@ -83,7 +83,7 @@ destroyed by `destroy()`, and then fetch `env`.
-**Method arguments** +Method arguments Following macros convert JS arguments into C++ variables. Three types of argument retrieval are supported: @@ -159,7 +159,7 @@ JS_METHOD(test) {
-**Setter argument** +Setter argument Works similar to method arguments. But there is always `value` argument, from which a C++ value is extracted. @@ -191,7 +191,7 @@ See also: [Class Wrapping](class-wrapping.md)
-**JS Data to C++ Data** +JS Data to C++ Data * `T *getArrayData(value, num = NULL)` - extracts TypedArray data of any type from the given JS value. Does not accept `Array`. Checks with `IsArrayBuffer()`.