diff options
author | Björn-Egil Dahlberg <[email protected]> | 2011-11-07 17:24:08 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2011-11-07 17:24:08 +0100 |
commit | 766a0a84f0b9e4b9341fb06364bf5430574588a6 (patch) | |
tree | 4e0b881a5806f6a75661b20d56a77e780bf24cd6 /erts/emulator/beam/bif.h | |
parent | dd2f23d718f079afb12b8d0b9d288428fb0ad49d (diff) | |
parent | 4e73d4bee3fd7744ebaf9f672a0ab5bc6528301f (diff) | |
download | otp-766a0a84f0b9e4b9341fb06364bf5430574588a6.tar.gz otp-766a0a84f0b9e4b9341fb06364bf5430574588a6.tar.bz2 otp-766a0a84f0b9e4b9341fb06364bf5430574588a6.zip |
Merge branch 'egil/fix-compiler-warnings'
* egil/fix-compiler-warnings:
erts: Remove unused variable in enif_make_binary
erts: Remove debug variable in list_to_binary
erts: Remove cp on exiting and trapping processes
erts: Remove debug variables in erl_db
erts: Remove dead code in efile_drv
erts: Remove lock_check debug variables
erts: Remove unused variable in ttsl_drv
erts: "initialized" is only used with CHLDWTHR
erts: remove debug variables in beam_bp
Diffstat (limited to 'erts/emulator/beam/bif.h')
-rw-r--r-- | erts/emulator/beam/bif.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/erts/emulator/beam/bif.h b/erts/emulator/beam/bif.h index 8faa09feb8..66f152a6ea 100644 --- a/erts/emulator/beam/bif.h +++ b/erts/emulator/beam/bif.h @@ -160,6 +160,17 @@ do { \ (Ret) = THE_NON_VALUE; \ } while (0) +#define ERTS_BIF_PREP_TRAP3_NO_RET(Trap, Proc, A0, A1, A2)\ +do { \ + (Proc)->arity = 3; \ + (Proc)->def_arg_reg[0] = (Eterm) (A0); \ + (Proc)->def_arg_reg[1] = (Eterm) (A1); \ + (Proc)->def_arg_reg[2] = (Eterm) (A2); \ + *((UWord *) (UWord) ((Proc)->def_arg_reg + 3)) = (UWord) ((Trap)->address); \ + (Proc)->freason = TRAP; \ +} while (0) + + #define BIF_TRAP0(p, Trap_) do { \ (p)->arity = 0; \ *((UWord *) (UWord) ((p)->def_arg_reg + 3)) = (UWord) ((Trap_)->address); \ |