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.

29 lines
539 B

name: duk_pop
12 years ago
proto: |
void duk_pop(duk_context *ctx);
12 years ago
stack: |
[ ... val! ] -> [ ... ]
12 years ago
summary: |
<p>Pop one element off the stack. If the stack is empty, throws an error.</p>
12 years ago
<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