requires_arg.h 804 B

1234567891011121314151617181920212223242526272829
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
  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. // Input:
  19. // i index of current arg
  20. // nrhs total number of args
  21. // name of current arg
  22. IGL_INLINE void requires_arg(const int i, const int nrhs, const char *name);
  23. }
  24. }
  25. #ifndef IGL_STATIC_LIBRARY
  26. # include "requires_arg.cpp"
  27. #endif
  28. #endif