mirror of
https://github.com/holub/mame
synced 2025-07-03 00:56:03 +03:00
luaL_error doesn't actually return, but it lacks the noreturn attribute, so the compiler must be appeased
This commit is contained in:
parent
ee7ceb76b5
commit
da78088c91
@ -92,10 +92,9 @@ protected:
|
|||||||
auto p(sol::stack::unqualified_check_get<T *>(L, 1));
|
auto p(sol::stack::unqualified_check_get<T *>(L, 1));
|
||||||
if (!p)
|
if (!p)
|
||||||
luaL_error(L, "sol: 'self' is not of type '%s' (pass 'self' as first argument with ':' or call on proper type)", sol::detail::demangle<T>().c_str());
|
luaL_error(L, "sol: 'self' is not of type '%s' (pass 'self' as first argument with ':' or call on proper type)", sol::detail::demangle<T>().c_str());
|
||||||
else if (!*p)
|
if (!*p)
|
||||||
luaL_error(L, "sol: 'self' argument is nil (pass 'self' as first argument with ':' or call on a '%s' type", sol::detail::demangle<T>().c_str());
|
luaL_error(L, "sol: 'self' argument is nil (pass 'self' as first argument with ':' or call on a '%s' type", sol::detail::demangle<T>().c_str());
|
||||||
else
|
return **p;
|
||||||
return **p;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct indexed_iterator
|
struct indexed_iterator
|
||||||
|
Loading…
Reference in New Issue
Block a user