Skip to content

Commit

Permalink
fixup! Matlab add engine
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillis committed Jul 28, 2024
1 parent fab6af9 commit c2b2c27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_library(mex SHARED src/mex.cpp include/mex.h include/mex_versions.h)
add_library(mx SHARED src/mx.cpp include/mex.h include/matrix.h include/matrix_versions.h)
add_library(ut SHARED src/ut.cpp)
add_library(eng SHARED src/eng.cpp include/engine.h include/eng_Export.h)
add_library(eng SHARED src/eng.cpp include/engine.h)

if (NOT MATLAB_API_VERSION)
set(MATLAB_API_VERSION 800)
Expand Down
15 changes: 7 additions & 8 deletions matlab/include/engine.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
#ifndef engine_H
#define engine_H
#include "eng_Export.h"

extern "C"
{
typedef struct mxArray_tag mxArray;
typedef struct engine Engine;

eng_Export int engEvalString(Engine *, const char *);
eng_Export Engine* engOpenSingleUse(const char *, void *, int *);
eng_Export Engine *engOpen(const char *);
eng_Export int engClose(Engine *ep);
eng_Export mxArray *engGetVariable(Engine *, const char *);
eng_Export int engPutVariable(Engine *, const char *, const mxArray *);
eng_Export int engOutputBuffer(Engine *, char *, int);
int engEvalString(Engine *, const char *);
Engine* engOpenSingleUse(const char *, void *, int *);
Engine *engOpen(const char *);
int engClose(Engine *ep);
mxArray *engGetVariable(Engine *, const char *);
int engPutVariable(Engine *, const char *, const mxArray *);
int engOutputBuffer(Engine *, char *, int);

}

Expand Down

0 comments on commit c2b2c27

Please sign in to comment.