=proto int duk_require_int(duk_context *ctx, int index); =stack [ ... val! ... ] =summary

Like duk_get_int(), but throws an error if the value at index is not a number or if the index is invalid.

=example printf("int value: %d\n", duk_require_int(ctx, -3)); =tags stack