OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
GSLErrorHandling.h
Go to the documentation of this file.
1//
2// Copyright (c) 2008 - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
3//
4// All rights reserved
5//
6// This file is part of OPAL.
7//
8// OPAL is free software: you can redistribute it and/or modify
9// it under the terms of the GNU General Public License as published by
10// the Free Software Foundation, either version 3 of the License, or
11// (at your option) any later version.
12//
13// You should have received a copy of the GNU General Public License
14// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
15//
16#ifndef GSLERRORHANDLING_H
17#define GSLERRORHANDLING_H
18
20
21inline void handleGSLErrors(const char* reason, const char* file, int /*line*/, int /*gsl_errno*/) {
22 throw OpalException(file, reason);
23}
24
25#endif
void handleGSLErrors(const char *reason, const char *file, int, int)