requires_arg.cpp 599 B

12345678910111213141516
  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. #include "requires_arg.h"
  9. #include "mexErrMsgTxt.h"
  10. #include "../C_STR.h"
  11. IGL_INLINE void igl::matlab::requires_arg(const int i, const int nrhs, const char *name)
  12. {
  13. mexErrMsgTxt((i+1)<nrhs,
  14. C_STR("Parameter '"<<name<<"' requires argument"));
  15. }