Skip to content
Snippets Groups Projects
Commit 8ce80bb6 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

trying to fix compile #2

parent c7073a89
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,14 @@ extern "C" {
#include "history.h"
#endif
template <>
int luaCall(lua_State *L,void (*_f)()) {
if (lua_gettop(L)==1)
lua_remove(L,1);
(*(_f))();
return 1;
}
//trivial class to bind options
class gmshOptions {
public:
......
......@@ -498,12 +498,7 @@ static int luaCall(lua_State *L, void (*_f)(t0)) {
return 1;
};
template <>
static int luaCall(lua_State *L,void (*_f)()) {
if (lua_gettop(L)==1)
lua_remove(L,1);
(*(_f))();
return 1;
};
int luaCall(lua_State *L,void (*_f)());
//const, return
template <typename tObj, typename tRet, typename t0, typename t1, typename t2, typename t3>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment