diff options
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r-- | src/lanes.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp index a5e4236..473e150 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp | |||
@@ -242,6 +242,7 @@ LUAG_FUNC(register) | |||
242 | // , [gc_cb_func] | 242 | // , [gc_cb_func] |
243 | // , [name] | 243 | // , [name] |
244 | // , error_trace_level | 244 | // , error_trace_level |
245 | // , as_coroutine | ||
245 | // [, ... args ...]) | 246 | // [, ... args ...]) |
246 | // | 247 | // |
247 | // Upvalues: metatable to use for 'lane_ud' | 248 | // Upvalues: metatable to use for 'lane_ud' |
@@ -257,7 +258,8 @@ LUAG_FUNC(lane_new) | |||
257 | static constexpr int kGcCbIdx{ 7 }; | 258 | static constexpr int kGcCbIdx{ 7 }; |
258 | static constexpr int kNameIdx{ 8 }; | 259 | static constexpr int kNameIdx{ 8 }; |
259 | static constexpr int kErTlIdx{ 9 }; | 260 | static constexpr int kErTlIdx{ 9 }; |
260 | static constexpr int kFixedArgsIdx{ 9 }; | 261 | static constexpr int kAsCoro{ 10 }; |
262 | static constexpr int kFixedArgsIdx{ 10 }; | ||
261 | 263 | ||
262 | int const _nargs{ lua_gettop(L_) - kFixedArgsIdx }; | 264 | int const _nargs{ lua_gettop(L_) - kFixedArgsIdx }; |
263 | LUA_ASSERT(L_, _nargs >= 0); | 265 | LUA_ASSERT(L_, _nargs >= 0); |