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.
 
 
 
 
 
 

28 lines
539 B

name: duk_pop
proto: |
void duk_pop(duk_context *ctx);
stack: |
[ ... val! ] -> [ ... ]
summary: |
<p>Pop one element off the stack. If the stack is empty, throws an error.</p>
<p>To pop multiple elements, use
<code><a href="#duk_pop_n">duk_pop_n()</a></code> or the shortcuts for common cases:
<code><a href="#duk_pop_2">duk_pop_2()</a></code> and
<code><a href="#duk_pop_3">duk_pop_3()</a></code>.</p>
example: |
duk_pop(ctx);
tags:
- stack
seealso:
- duk_pop_2
- duk_pop_3
- duk_pop_n
introduced: 1.0.0