mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Issue an error in case of direct inclusion of internal headers.
This commit is contained in:
3
unsupported/Eigen/src/Splines/InternalHeaderCheck.h
Normal file
3
unsupported/Eigen/src/Splines/InternalHeaderCheck.h
Normal file
@@ -0,0 +1,3 @@
|
||||
#ifndef EIGEN_SPLINES_MODULE_H
|
||||
#error "Please include unsupported/Eigen/Splines instead of including headers inside the src directory directly."
|
||||
#endif
|
||||
@@ -10,6 +10,8 @@
|
||||
#ifndef EIGEN_SPLINE_H
|
||||
#define EIGEN_SPLINE_H
|
||||
|
||||
#include "./InternalHeaderCheck.h"
|
||||
|
||||
#include "SplineFwd.h"
|
||||
|
||||
namespace Eigen
|
||||
|
||||
@@ -15,11 +15,14 @@
|
||||
#include <numeric>
|
||||
#include <vector>
|
||||
|
||||
#include "./InternalHeaderCheck.h"
|
||||
|
||||
#include "SplineFwd.h"
|
||||
|
||||
#include "../../../../Eigen/LU"
|
||||
#include "../../../../Eigen/QR"
|
||||
|
||||
|
||||
namespace Eigen
|
||||
{
|
||||
/**
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#ifndef EIGEN_SPLINES_FWD_H
|
||||
#define EIGEN_SPLINES_FWD_H
|
||||
|
||||
#include "./InternalHeaderCheck.h"
|
||||
#include "../../../../Eigen/Core"
|
||||
|
||||
namespace Eigen
|
||||
|
||||
Reference in New Issue
Block a user