irccd  3.0.3
Static Public Member Functions | List of all members
irccd::js::duk::type_traits< bool > Struct Reference

Specialization for bool. More...

#include <duk.hpp>

Static Public Member Functions

static void push (duk_context *ctx, bool value)
 
static auto get (duk_context *ctx, duk_idx_t index) -> bool
 
static auto require (duk_context *ctx, duk_idx_t index) -> bool
 

Detailed Description

Specialization for bool.

Member Function Documentation

◆ get()

static auto irccd::js::duk::type_traits< bool >::get ( duk_context *  ctx,
duk_idx_t  index 
) -> bool
static

Get a boolean.

Uses duk_get_boolean.

Parameters
ctxthe Duktape context
indexthe value index
Returns
the converted value

◆ push()

static void irccd::js::duk::type_traits< bool >::push ( duk_context *  ctx,
bool  value 
)
static

Push a boolean.

Uses duk_push_boolean

Parameters
ctxthe Duktape context
valuethe value

◆ require()

static auto irccd::js::duk::type_traits< bool >::require ( duk_context *  ctx,
duk_idx_t  index 
) -> bool
static

Require a boolean.

Uses duk_require_boolean.

Parameters
ctxthe Duktape context
indexthe value index
Returns
the converted value

The documentation for this struct was generated from the following file: