mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Q_Q
This commit is contained in:
parent
8fa48627c6
commit
f70edf5686
|
@ -105,7 +105,11 @@ namespace function_detail {
|
|||
|
||||
template <typename F, F fx>
|
||||
inline int c_call(lua_State* L) {
|
||||
#ifdef __clang
|
||||
return detail::trampoline(L, function_detail::call_wrapper_entry<F, fx>);
|
||||
#else
|
||||
return detail::static_trampoline<(&function_detail::call_wrapper_entry<F, fx>)>(L);
|
||||
#endif // fuck you clang :<
|
||||
}
|
||||
} // sol
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user