call mexCallMATLAB from coder.ceval ?

조회 수: 3 (최근 30일)
Charlie Ford
Charlie Ford 2019년 7월 19일
댓글: Sahithi Kanumarlapudi 2019년 8월 8일
I make extensive use of C-language mex functions, C-language S-functions, and coder.ceval for our Windows-based code-gen'd app.
In order to provide stack-trace info (as part of code to validate m-code functions input parameters), I use mexCallMATLAB(nl,plhs,nr,prhs,"dbstack") from a mex function.
I want to be able to use mexCallMATLAB(nl,plhs,nr,prhs,"dbstack") from the corresponding coder.ceval() function, but get LNK2019 at link time.
Is there a way I can use mexCallMATLAB(,,,,"dbstack") from within a coder.ceval module ?
I'd rather not attempt StackWalk64.
I realize that there will be no MATLAB process in a "code-gen'd" .exe runtime environment.
  댓글 수: 1
Sahithi Kanumarlapudi
Sahithi Kanumarlapudi 2019년 8월 8일
Can you be a bit more clear on what you mean by use mexCallMATLAB(nl,plhs,nr,prhs,"dbstack") from the corresponding coder.ceval() function

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by