summaryrefslogtreecommitdiff
path: root/lib/crypto/c_src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/c_src/common.h')
-rw-r--r--lib/crypto/c_src/common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/crypto/c_src/common.h b/lib/crypto/c_src/common.h
index 593a58373f..5da20fd0c8 100644
--- a/lib/crypto/c_src/common.h
+++ b/lib/crypto/c_src/common.h
@@ -1,7 +1,7 @@
/*
* %CopyrightBegin%
*
- * Copyright Ericsson AB 2010-2021. All Rights Reserved.
+ * Copyright Ericsson AB 2010-2022. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,4 +46,6 @@ ERL_NIF_TERM raise_exception(ErlNifEnv* env, ERL_NIF_TERM id, int arg_num, char*
#define EXCP_NOTSUP_N(Env, ArgNum, Str) raise_exception((Env), atom_notsup, (ArgNum), (Str), __FILE__, __LINE__)
#define EXCP_BADARG_N(Env, ArgNum, Str) raise_exception((Env), atom_badarg, (ArgNum), (Str), __FILE__, __LINE__)
+#define assign_goto(Var, Goto, CALL) {Var = (CALL); goto Goto;}
+
#endif /* E_COMMON_H__ */