Skip to content
Snippets Groups Projects
Commit cf228e31 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Added stack_swap() and swap_dup() from Pike 0.6.

Rev: src/interpret.h:1.17
parent 299dedce
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,10 @@ struct frame ...@@ -54,6 +54,10 @@ struct frame
#define push_svalue(S) do { struct svalue *_=(S); assign_svalue_no_free(sp,_); sp++; }while(0) #define push_svalue(S) do { struct svalue *_=(S); assign_svalue_no_free(sp,_); sp++; }while(0)
#define stack_dup() push_svalue(sp-1)
#define stack_swap() do { struct svalue _=sp[-1]; sp[-1]=sp[-2]; sp[-2]=_; } while(0)
#define APPLY_MASTER(FUN,ARGS) \ #define APPLY_MASTER(FUN,ARGS) \
do{ \ do{ \
static int fun_,master_cnt=0; \ static int fun_,master_cnt=0; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment