requires_arg.h 822 B

12345678910111213141516171819202122232425262728
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2015 Alec Jacobson <[email protected]>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. #ifndef IGL_REQUIRES_ARG_H
  9. #define IGL_REQUIRES_ARG_H
  10. #include "../igl_inline.h"
  11. #include <mex.h>
  12. namespace igl
  13. {
  14. namespace matlab
  15. {
  16. /// Simply throw an error if (i+1)<rhs
  17. ///
  18. /// @param[in] i index of current arg
  19. /// @param[in] nrhs total number of args
  20. /// @param[in] name of current arg
  21. IGL_INLINE void requires_arg(const int i, const int nrhs, const char *name);
  22. }
  23. }
  24. #ifndef IGL_STATIC_LIBRARY
  25. # include "requires_arg.cpp"
  26. #endif
  27. #endif