sapling/eden/fs/utils/NotImplemented.h
Xavier Deguillard 2ff478ea62 utils: move win/utils/Stub.h to utils/NotImplemented.h
Summary:
Since the Stub.h now only contains NOT_IMPLEMENTED, let's move it to its own
header outside of the win directory.

Reviewed By: genevievehelsel

Differential Revision: D23696244

fbshipit-source-id: 2dfc3204707e043ee6c89595668c484e0fa8c0d0
2020-09-16 12:31:46 -07:00

26 lines
797 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#pragma once
#include "eden/fs/service/EdenError.h"
namespace facebook {
namespace eden {
#define NOT_IMPLEMENTED() \
do { \
throw newEdenError( \
EdenErrorType::GENERIC_ERROR, \
" +++++++ NOT IMPLEMENTED +++++++ Function: ", \
__FUNCTION__, \
" Line: ", \
__LINE__); \
} while (true)
} // namespace eden
} // namespace facebook