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

fix compile, test #3

parent 8ce80bb6
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ extern "C" { ...@@ -43,7 +43,7 @@ extern "C" {
#endif #endif
template <> template <>
int luaCall(lua_State *L,void (*_f)()) { int luaCall<void>(lua_State *L,void (*_f)()) {
if (lua_gettop(L)==1) if (lua_gettop(L)==1)
lua_remove(L,1); lua_remove(L,1);
(*(_f))(); (*(_f))();
......
...@@ -498,7 +498,7 @@ static int luaCall(lua_State *L, void (*_f)(t0)) { ...@@ -498,7 +498,7 @@ static int luaCall(lua_State *L, void (*_f)(t0)) {
return 1; return 1;
}; };
template <> template <>
int luaCall(lua_State *L,void (*_f)()); int luaCall<void>(lua_State *L,void (*_f)());
//const, return //const, return
template <typename tObj, typename tRet, typename t0, typename t1, typename t2, typename t3> 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.
Finish editing this message first!
Please register or to comment