Lines Matching refs:ret

436 	duk_idx_t ret;  in duk_get_top_index()  local
440 ret = ((duk_idx_t) (thr->valstack_top - thr->valstack_bottom)) - 1; in duk_get_top_index()
441 if (DUK_UNLIKELY(ret < 0)) { in duk_get_top_index()
448 return ret; in duk_get_top_index()
453 duk_idx_t ret; in duk_require_top_index() local
457 ret = ((duk_idx_t) (thr->valstack_top - thr->valstack_bottom)) - 1; in duk_require_top_index()
458 if (DUK_UNLIKELY(ret < 0)) { in duk_require_top_index()
462 return ret; in duk_require_top_index()
1097 duk_bool_t ret = 0; /* default: false */ in duk_get_boolean() local
1104 ret = DUK_TVAL_GET_BOOLEAN(tv); in duk_get_boolean()
1107 DUK_ASSERT(ret == 0 || ret == 1); in duk_get_boolean()
1108 return ret; in duk_get_boolean()
1119 duk_bool_t ret = DUK_TVAL_GET_BOOLEAN(tv); in duk_require_boolean() local
1120 DUK_ASSERT(ret == 0 || ret == 1); in duk_require_boolean()
1121 return ret; in duk_require_boolean()
1128 duk_double_union ret; in duk_get_number() local
1133 ret.d = DUK_DOUBLE_NAN; /* default: NaN */ in duk_get_number()
1136 ret.d = DUK_TVAL_GET_NUMBER(tv); in duk_get_number()
1144 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&ret); in duk_get_number()
1145 return ret.d; in duk_get_number()
1156 duk_double_union ret; in duk_require_number() local
1157 ret.d = DUK_TVAL_GET_NUMBER(tv); in duk_require_number()
1164 DUK_DBLUNION_NORMALIZE_NAN_CHECK(&ret); in duk_require_number()
1165 return ret.d; in duk_require_number()
1196 const char *ret; in duk_get_lstring() local
1202 ret = NULL; in duk_get_lstring()
1214 ret = (const char *) DUK_HSTRING_GET_DATA(h); in duk_get_lstring()
1220 return ret; in duk_get_lstring()
1225 const char *ret; in duk_require_lstring() local
1232 ret = duk_get_lstring(ctx, index, out_len); in duk_require_lstring()
1233 if (ret) { in duk_require_lstring()
1234 return ret; in duk_require_lstring()
1410 duk_heaphdr *ret; in duk__get_tagged_heaphdr_raw() local
1411 ret = DUK_TVAL_GET_HEAPHDR(tv); in duk__get_tagged_heaphdr_raw()
1412 DUK_ASSERT(ret != NULL); /* tagged null pointers should never occur */ in duk__get_tagged_heaphdr_raw()
1413 return ret; in duk__get_tagged_heaphdr_raw()
1537 duk_c_function ret; in duk_require_c_function() local
1541 ret = duk_get_c_function(ctx, index); in duk_require_c_function()
1542 if (!ret) { in duk_require_c_function()
1545 return ret; in duk_require_c_function()
1568 void *ret; in duk_get_heapptr() local
1574 ret = (void *) DUK_TVAL_GET_HEAPHDR(tv); in duk_get_heapptr()
1575 DUK_ASSERT(ret != NULL); in duk_get_heapptr()
1576 return ret; in duk_get_heapptr()
1585 void *ret; in duk_require_heapptr() local
1592 ret = (void *) DUK_TVAL_GET_HEAPHDR(tv); in duk_require_heapptr()
1593 DUK_ASSERT(ret != NULL); in duk_require_heapptr()
1594 return ret; in duk_require_heapptr()
1961 duk_int32_t ret; in duk_to_int32() local
1967 ret = duk_js_toint32(thr, tv); in duk_to_int32()
1971 DUK_TVAL_SET_FASTINT_I32_UPDREF(thr, tv, ret); /* side effects */ in duk_to_int32()
1972 return ret; in duk_to_int32()
1978 duk_uint32_t ret; in duk_to_uint32() local
1984 ret = duk_js_touint32(thr, tv); in duk_to_uint32()
1988 DUK_TVAL_SET_FASTINT_U32_UPDREF(thr, tv, ret); /* side effects */ in duk_to_uint32()
1989 return ret; in duk_to_uint32()
1995 duk_uint16_t ret; in duk_to_uint16() local
2001 ret = duk_js_touint16(thr, tv); in duk_to_uint16()
2005 DUK_TVAL_SET_FASTINT_U32_UPDREF(thr, tv, ret); /* side effects */ in duk_to_uint16()
2006 return ret; in duk_to_uint16()
2014 duk_uint8_t ret; in duk_to_uint8clamped() local
2034 ret = (duk_uint8_t) d; in duk_to_uint8clamped()
2035 ret = (ret + 1) & 0xfe; /* Example: d=3.5, t=0.5 -> ret = (3 + 1) & 0xfe = 4 & 0xfe = 4 in duk_to_uint8clamped()
2040 ret = (duk_uint8_t) (d + 0.5); in duk_to_uint8clamped()
2042 return ret; in duk_to_uint8clamped()
2309 duk_hstring *ret; in duk_to_hstring() local
2312 ret = duk_get_hstring(ctx, index); in duk_to_hstring()
2313 DUK_ASSERT(ret != NULL); in duk_to_hstring()
2314 return ret; in duk_to_hstring()
3542 const char *ret; in duk_push_sprintf() local
3548 ret = duk_push_vsprintf(ctx, fmt, ap); in duk_push_sprintf()
3551 return ret; in duk_push_sprintf()
3558 duk_idx_t ret; in duk_push_object_helper() local
3579 ret = (duk_idx_t) (thr->valstack_top - thr->valstack_bottom); in duk_push_object_helper()
3591 return ret; in duk_push_object_helper()
3596 duk_idx_t ret; in duk_push_object_helper_proto() local
3601 ret = duk_push_object_helper(ctx, hobject_flags_and_class, -1); in duk_push_object_helper_proto()
3606 return ret; in duk_push_object_helper_proto()
3621 duk_idx_t ret; in duk_push_array() local
3625 ret = duk_push_object_helper(ctx, in duk_push_array()
3631 obj = duk_require_hobject(ctx, ret); in duk_push_array()
3653 return ret; in duk_push_array()
3659 duk_idx_t ret; in duk_push_thread_raw() local
3692 ret = (duk_idx_t) (thr->valstack_top - thr->valstack_bottom); in duk_push_thread_raw()
3716 return ret; in duk_push_thread_raw()
3722 duk_idx_t ret; in duk_push_compiledfunction() local
3750 ret = (duk_idx_t) (thr->valstack_top - thr->valstack_bottom); in duk_push_compiledfunction()
3756 return ret; in duk_push_compiledfunction()
3762 duk_idx_t ret; in duk__push_c_function_raw() local
3797 ret = (duk_idx_t) (thr->valstack_top - thr->valstack_bottom); in duk__push_c_function_raw()
3803 return ret; in duk__push_c_function_raw()
4058 duk_idx_t ret; in duk_push_error_object_va_raw() local
4077 ret = duk_push_object_helper_proto(ctx, in duk_push_error_object_va_raw()
4105 return ret; in duk_push_error_object_va_raw()
4110 duk_idx_t ret; in duk_push_error_object_raw() local
4115 ret = duk_push_error_object_va_raw(ctx, err_code, filename, line, fmt, ap); in duk_push_error_object_raw()
4117 return ret; in duk_push_error_object_raw()
4125 duk_idx_t ret; in duk_push_error_object_stash() local
4132 ret = duk_push_error_object_va_raw(ctx, err_code, filename, line, fmt, ap); in duk_push_error_object_stash()
4134 return ret; in duk_push_error_object_stash()
4253 duk_idx_t ret; in duk_push_heapptr() local
4268 ret = (duk_idx_t) (thr->valstack_top - thr->valstack_bottom); in duk_push_heapptr()
4287 return ret; in duk_push_heapptr()
4291 return ret; in duk_push_heapptr()