mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
trampoline fx for gcc 4.9 needs some implicit conversion help.
This commit is contained in:
parent
29dacd819e
commit
8827751c20
|
@ -1192,8 +1192,9 @@ TEST_CASE( "functions/function_result-protected_function_result", "Function resu
|
||||||
+ " return '" + handlederrormessage + "'"
|
+ " return '" + handlederrormessage + "'"
|
||||||
+ "end"
|
+ "end"
|
||||||
);
|
);
|
||||||
|
auto nontrampolinefx = [](lua_State*) -> int { throw "x";};
|
||||||
lua.set("nontrampoline", (lua_CFunction)[](lua_State*) -> int { throw "x";});
|
lua_CFunction c_nontrampolinefx = nontrampolinefx;
|
||||||
|
lua.set("nontrampoline", nontrampolinefx);
|
||||||
|
|
||||||
sol::protected_function doom = lua[ "doom" ];
|
sol::protected_function doom = lua[ "doom" ];
|
||||||
sol::protected_function luadoom = lua["luadoom"];
|
sol::protected_function luadoom = lua["luadoom"];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user