test_compiler.cpp 788 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * file: rand.cpp
  3. * author: A trusty code generator
  4. * date: Wed, 19 Jun 2013 11:15:15
  5. *
  6. * This file was autogenerated, do not modify.
  7. * See LICENCE for full modification and redistribution details.
  8. * Copyright 2013 The OpenCV Foundation
  9. */
  10. #include "mex.h"
  11. #include <vector>
  12. /*
  13. * rand
  14. * Gateway routine
  15. * nlhs - number of return arguments
  16. * plhs - pointers to return arguments
  17. * nrhs - number of input arguments
  18. * prhs - pointers to input arguments
  19. */
  20. void mexFunction(int nlhs, mxArray* plhs[],
  21. int nrhs, const mxArray* prhs[]) {
  22. // call the opencv function
  23. // [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
  24. try {
  25. rand();
  26. } catch(...) {
  27. mexErrMsgTxt("Uncaught exception occurred in rand");
  28. }
  29. }