Skip to content

Commit b688310

Browse files
committed
added retcode return if not ok macro
1 parent 8cecac3 commit b688310

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/el/retcode.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ of a function.
1414

1515
#pragma once
1616

17+
#define EL_RETURN_IF_NOT_OK(expression) {el::retcode __retval; if ((__retval = (expression)) != el::retcode::ok) return __retval;}
18+
1719
namespace el
1820
{
1921
enum class retcode

0 commit comments

Comments
 (0)