Mantid
Loading...
Searching...
No Matches
DeclareUserAlg.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#define DECLARE_USER_ALG(x) \
10 Algorithm *x##_create() { return new x; } \
11 \
12 void x##_destroy(Algorithm *p) { delete p; }