From 0fa111b1f6418de2248ee7705fb7d783be7d001e Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 3 Mar 2026 14:55:14 +0100 Subject: Update copyright dates --- src/lanes.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/lanes.cpp') diff --git a/src/lanes.cpp b/src/lanes.cpp index 5b9eb2b..74a9d95 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp @@ -1,6 +1,6 @@ /* * LANES.CPP Copyright (c) 2007-08, Asko Kauppi - * Copyright (C) 2009-24, Benoit Germain + * Copyright (C) 2009-26, Benoit Germain * * Multithreading in Lua. * @@ -56,7 +56,7 @@ =============================================================================== Copyright (C) 2007-10 Asko Kauppi - 2011-24 Benoit Germain + 2011-26 Benoit Germain Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -267,7 +267,8 @@ namespace { // Read the priority-is-native flag and optional priority integer from the lane_new() argument stack. // Validates the mapped priority range if native mode is not requested. - [[nodiscard]] static LanePriority ResolveLanePriority(lua_State* const L_, StackIndex const prinIdx_, StackIndex const prioIdx_) + [[nodiscard]] + static LanePriority ResolveLanePriority(lua_State* const L_, StackIndex const prinIdx_, StackIndex const prioIdx_) { NativePrioFlag const _native{ static_cast(lua_toboolean(L_, prinIdx_)) }; if (lua_isnoneornil(L_, prioIdx_)) { @@ -373,7 +374,8 @@ namespace { // Push the optional error handler onto L2, then transfer the lane body (a Lua function or // a string to be compiled) from L_ into L2_. Returns the error handler count (0 or 1) so // the caller can assert the correct L2 stack depth after arguments are transferred. - [[nodiscard]] static int TransferLaneBody(Universe* const U_, lua_State* const L_, lua_State* const L2_, StackIndex const funcIdx_, Lane* const lane_) + [[nodiscard]] + static int TransferLaneBody(Universe* const U_, lua_State* const L_, lua_State* const L2_, StackIndex const funcIdx_, Lane* const lane_) { int const _errorHandlerCount{ lane_->pushErrorHandler() }; // L_: [fixed] args... L2: eh? LuaType const _func_type{ luaW_type(L_, funcIdx_) }; -- cgit v1.2.3-55-g6feb