Skip to content

Commit

Permalink
added retcode return if not ok macro
Browse files Browse the repository at this point in the history
  • Loading branch information
melektron committed Jul 24, 2023
1 parent 8cecac3 commit b688310
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/el/retcode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ of a function.

#pragma once

#define EL_RETURN_IF_NOT_OK(expression) {el::retcode __retval; if ((__retval = (expression)) != el::retcode::ok) return __retval;}

namespace el
{
enum class retcode
Expand Down

0 comments on commit b688310

Please sign in to comment.