SIRF  3.4.0
handle.h
1 #pragma once
2 
3 //#include "sirf/iUtilities/data_handle.h"
4 #include "sirf/iUtilities/iutilities.h"
5 
6 #define HANDLE(H, F) H = F; if (execution_status(H)) break
7 #define CALL(F) if (execution_status(F, 1)) break
8 //#define CALL(F) TMP_HANDLE = F; if (execution_status(TMP_HANDLE, 1)) break
9 
10 inline int execution_status(void* handle, int clear = 0)
11 {
12  int s = executionStatus(handle);
13  if (s)
14  std::cout << executionError(handle) << '\n';
15  if (clear)
16  deleteDataHandle(handle);
17  return s;
18 }