diff --git a/sol/function_types_templated.hpp b/sol/function_types_templated.hpp index 2f086a04..8c4ea77b 100644 --- a/sol/function_types_templated.hpp +++ b/sol/function_types_templated.hpp @@ -105,7 +105,11 @@ namespace function_detail { template inline int c_call(lua_State* L) { - return detail::static_trampoline<(&function_detail::call_wrapper_entry)>(L); +#ifdef __clang + return detail::trampoline(L, function_detail::call_wrapper_entry); +#else + return detail::static_trampoline<(&function_detail::call_wrapper_entry)>(L); +#endif // fuck you clang :< } } // sol