Skip to content

Commit

Permalink
Add MLGet() for (long/short) int
Browse files Browse the repository at this point in the history
  • Loading branch information
jhyeon committed Jul 11, 2016
1 parent 3d6b7eb commit 08a78d6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/mathlink_macros.hpp
Expand Up @@ -120,4 +120,21 @@ void MLPutRuleTo(MLINK link, T t, const std::string& name, const std::vector<std
MLPut(link, t);
}

/********************* get types *********************/

void MLGet(MLINK link, int *c)
{
MLGetInteger(link, c);
}

void MLGet(MLINK link, long *c)
{
MLGetLongInteger(link, c);
}

void MLGet(MLINK link, short *c)
{
MLGetShortInteger(link, c);
}

#endif // MATHLINK_MACROS_H

0 comments on commit 08a78d6

Please sign in to comment.