Skip to content
Extraits de code Groupes Projets
Valider 1ed28678 rédigé par Elliu's avatar Elliu
Parcourir les fichiers

Fix _Noreturn on gcc

parent cfa07ca4
Branches
Aucune étiquette associée trouvée
1 requête de fusion!16Add a way to execute a Lua file with Vivy in a click-click way
...@@ -48,7 +48,7 @@ getJobIteratorTypeFromString(const std::string_view it) noexcept ...@@ -48,7 +48,7 @@ getJobIteratorTypeFromString(const std::string_view it) noexcept
// CRTP to expose objects to Lua // CRTP to expose objects to Lua
template <class Object> class CRTPLuaScriptObject { template <class Object> class CRTPLuaScriptObject {
protected: protected:
static void _Noreturn luaGlobalError(lua_State *const L, const std::string &str) noexcept static void __attribute__((__noreturn__)) luaGlobalError(lua_State *const L, const std::string &str) noexcept
{ {
const auto *const context = LuaContext::getContext(L); const auto *const context = LuaContext::getContext(L);
lua_pushfstring(L, "%s:0:%s", context->getCurrentLuaFile().c_str(), str.c_str()); lua_pushfstring(L, "%s:0:%s", context->getCurrentLuaFile().c_str(), str.c_str());
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter