You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
443 B

name: duk_pop_n
proto: |
void duk_pop_n(duk_context *ctx, duk_idx_t count);
stack: |
[ ... val1! ...! valN! ] -> [ ... ]
summary: |
<p>Pop <code>count</code> elements off the stack. If the stack has fewer than
<code>count</code> elements, throws an error. If <code>count</code> is zero, the
call is a no-op. Negative counts cause an error to be thrown.</p>
example: |
duk_pop_n(ctx, 10);
tags:
- stack
introduced: 1.0.0