From f70edf56869ee0542cea9bc511300bda8e12e99c Mon Sep 17 00:00:00 2001 From: ThePhD Date: Fri, 20 May 2016 05:33:29 -0400 Subject: [PATCH] Q_Q --- sol/function_types_templated.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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