func (d *Context) ErrorRaw(errCode int, filename string, line int, errMsg string) { __filename__ := C.CString(filename) __errMsg__ := C.CString(errMsg) defer C.free(unsafe.Pointer(__filename__)) defer C.free(unsafe.Pointer(__errMsg__)) C._duk_error_raw(d.duk_context, C.duk_errcode_t(errCode), __filename__, C.duk_int_t(line), __errMsg__) }
// See: http://duktape.org/api.html#duk_check_type func (d *Context) CheckType(index int, typ int) bool { return int(C.duk_check_type(d.duk_context, C.duk_idx_t(index), C.duk_int_t(typ))) == 1 }
// See: http://duktape.org/api.html#duk_to_primitive func (d *Context) ToPrimitive(index int, hint int) { C.duk_to_primitive(d.duk_context, C.duk_idx_t(index), C.duk_int_t(hint)) }
// See: http://duktape.org/api.html#duk_to_defaultvalue func (d *Context) ToDefaultvalue(index int, hint int) { C.duk_to_defaultvalue(d.duk_context, C.duk_idx_t(index), C.duk_int_t(hint)) }
// See: http://duktape.org/api.html#duk_set_magic func (d *Context) SetMagic(index int, magic int) { C.duk_set_magic(d.duk_context, C.duk_idx_t(index), C.duk_int_t(magic)) }
// See: http://duktape.org/api.html#duk_push_int func (d *Context) PushInt(val int) { C.duk_push_int(d.duk_context, C.duk_int_t(val)) }