Skip to content

Commit

Permalink
include issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillis committed Jul 28, 2024
1 parent d2be650 commit f282405
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ runs:
using: "composite"
steps:
- run: |
curl -OL https://github.com/casadi/mockups/releases/download/v80/mockups_${{ inputs.tag }}_Release.zip
curl -OL https://github.com/casadi/mockups/releases/download/v81/mockups_${{ inputs.tag }}_Release.zip
unzip mockups_${{ inputs.tag }}_Release.zip -d mockups
ls mockups
ls mockups/cmake
Expand Down
2 changes: 2 additions & 0 deletions matlab/include/engine.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef engine_H
#define engine_H

#include "matrix.h"

#ifdef __cplusplus
extern "C" {
#endif
Expand Down
11 changes: 11 additions & 0 deletions matlab/include/matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#define matrix_H


#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

#define int8_T int8_t
Expand All @@ -15,6 +19,9 @@

#include <stdlib.h>
#include <stddef.h>

typedef struct mxArray_tag mxArray;

typedef size_t mwSize;
typedef size_t mwIndex;
typedef enum { mxREAL, mxCOMPLEX } mxComplexity;
Expand Down Expand Up @@ -95,4 +102,8 @@ void mxSetProperty(mxArray *, mwIndex, const char *, const mxArray *);
void mxSetFieldByNumber(mxArray *, mwIndex, int, mxArray *);
mxArray* mxCreateCharArray(mwSize, const mwSize *);

#ifdef __cplusplus
}
#endif

#endif // matrix_H
3 changes: 0 additions & 3 deletions matlab/include/mex.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
extern "C" {
#endif

typedef struct mxArray_tag mxArray;


#include <matrix.h>

#include <mex_versions.h>
Expand Down

0 comments on commit f282405

Please sign in to comment.