Skip to content

Commit

Permalink
- added cplusplus macro to the read_matlab.h so that it can be linked…
Browse files Browse the repository at this point in the history
… against c++ files.

- Changed the simulate command to use mat as default.
- Changed the plot API accordingly.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8019 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Feb 26, 2011
1 parent e42fc63 commit d5ac6e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions c_runtime/read_matlab4.h
Expand Up @@ -37,6 +37,9 @@ typedef struct {
* The internal data is free'd by omc_free_matlab4_reader.
* The data persists until free'd, and is safe to use in your own data-structures
*/
#ifdef __cplusplus
extern "C" {
#endif
const char* omc_new_matlab4_reader(const char *filename, ModelicaMatReader *reader);

void omc_free_matlab4_reader(ModelicaMatReader *reader);
Expand All @@ -60,5 +63,8 @@ void omc_matlab4_print_all_vars(FILE *stream, ModelicaMatReader *reader);
double omc_matlab4_startTime(ModelicaMatReader *reader);

double omc_matlab4_stopTime(ModelicaMatReader *reader);
#ifdef __cplusplus
} // extern "C"
#endif

#endif

0 comments on commit d5ac6e4

Please sign in to comment.