c++ - Mex compilation macro -
i wish include header file when code compiled via mex command in matlab. if it's compiled directly visual studio not want included.
is there macro can that?
i'd of sort:
#ifdef mex_compile_flag #include "mexdependent.h" #end
you can use macro matlab_mex_file
this. mex.h work properly, macro must defined if , if compiled object linked mex file. mex
command makes sure define when calls compiler.
Comments
Post a Comment