trampoline fx for gcc 4.9 needs some implicit conversion help.

This commit is contained in:
ThePhD 2016-03-02 21:05:01 -05:00
parent 29dacd819e
commit 8827751c20

View File

@ -1192,8 +1192,9 @@ TEST_CASE( "functions/function_result-protected_function_result", "Function resu
+ " return '" + handlederrormessage + "'"
+ "end"
);
lua.set("nontrampoline", (lua_CFunction)[](lua_State*) -> int { throw "x";});
auto nontrampolinefx = [](lua_State*) -> int { throw "x";};
lua_CFunction c_nontrampolinefx = nontrampolinefx;
lua.set("nontrampoline", nontrampolinefx);
sol::protected_function doom = lua[ "doom" ];
sol::protected_function luadoom = lua["luadoom"];