summaryrefslogtreecommitdiff
path: root/lib/return_codes.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:21:41 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:21:41 +0200
commitd6301fca6b78db52d0d98f8e0799aba175ad2e59 (patch)
tree0380aac034e0d70ee058db07900d80ff20cfc81e /lib/return_codes.h
parent5.7 (diff)
downloadFreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.tar.gz
FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.tar.bz2
FreeFileSync-d6301fca6b78db52d0d98f8e0799aba175ad2e59.zip
5.8
Diffstat (limited to 'lib/return_codes.h')
-rw-r--r--lib/return_codes.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/return_codes.h b/lib/return_codes.h
index 34ae0527..0bd98a41 100644
--- a/lib/return_codes.h
+++ b/lib/return_codes.h
@@ -1,7 +1,7 @@
// **************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under *
// * GNU General Public License: http://www.gnu.org/licenses/gpl.html *
-// * Copyright (C) ZenJu (zenju AT gmx DOT de) - All Rights Reserved *
+// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved *
// **************************************************************************
#ifndef RETURN_CODES_H_INCLUDED
@@ -16,6 +16,15 @@ enum FfsReturnCode
FFS_RC_ABORTED,
FFS_RC_EXCEPTION,
};
+
+
+inline
+void raiseReturnCode(FfsReturnCode& rc, FfsReturnCode rcProposed)
+{
+ if (rc < rcProposed)
+ rc = rcProposed;
+}
+
}
bgstack15