From f0a4dca1624ce7280d9cc3a0887678d6d4a60992 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Sat, 3 Jun 2017 04:25:16 +0300 Subject: [PATCH] API doc for duk_is_constructable() --- website/api/duk_is_constructable.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 website/api/duk_is_constructable.yaml diff --git a/website/api/duk_is_constructable.yaml b/website/api/duk_is_constructable.yaml new file mode 100644 index 00000000..e021de8f --- /dev/null +++ b/website/api/duk_is_constructable.yaml @@ -0,0 +1,21 @@ +name: duk_is_constructable + +proto: | + duk_bool_t duk_is_constructable(duk_context *ctx, duk_idx_t idx); + +stack: | + [ ... val! ... ] + +summary: | +

Return 1 if value at idx is constructable, otherwise returns 0. + Also returns 0 if idx is invalid.

+ +example: | + if (duk_is_constructable(ctx, -3)) { + /* ... */ + } + +tags: + - stack + +introduced: 2.2.0