aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-28 17:34:56 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-28 17:34:56 +0200
commit8d7791f3eb1c5fc449490845254b59fdde30e9e0 (patch)
tree7c0c414bbe592b81a8c2073584bf1c627618ff2b /src
parent02fea6561b8ea1a25d740088c4911b584bd763d9 (diff)
downloadlanes-8d7791f3eb1c5fc449490845254b59fdde30e9e0.tar.gz
lanes-8d7791f3eb1c5fc449490845254b59fdde30e9e0.tar.bz2
lanes-8d7791f3eb1c5fc449490845254b59fdde30e9e0.zip
Handle LUA_ERRFILE
Diffstat (limited to 'src')
-rw-r--r--src/compat.h3
-rw-r--r--src/lane.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/compat.h b/src/compat.h
index b971a76..fb31cab 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -232,7 +232,8 @@ enum class LuaError
232 ERRSYNTAX = LUA_ERRSYNTAX, 232 ERRSYNTAX = LUA_ERRSYNTAX,
233 ERRMEM = LUA_ERRMEM, 233 ERRMEM = LUA_ERRMEM,
234 ERRGCMM = LUA_ERRGCMM, // pre-5.4 234 ERRGCMM = LUA_ERRGCMM, // pre-5.4
235 ERRERR = LUA_ERRERR 235 ERRERR = LUA_ERRERR,
236 ERRFILE = LUA_ERRFILE
236}; 237};
237 238
238inline constexpr LuaError ToLuaError(int rc_) 239inline constexpr LuaError ToLuaError(int rc_)
diff --git a/src/lane.cpp b/src/lane.cpp
index ada1846..129c926 100644
--- a/src/lane.cpp
+++ b/src/lane.cpp
@@ -364,7 +364,6 @@ namespace {
364 }; 364 };
365 365
366 namespace local { 366 namespace local {
367
368 static struct errcode_name sErrCodes[] = { 367 static struct errcode_name sErrCodes[] = {
369 { LuaError::OK, "LUA_OK" }, 368 { LuaError::OK, "LUA_OK" },
370 { LuaError::YIELD, "LUA_YIELD" }, 369 { LuaError::YIELD, "LUA_YIELD" },
@@ -373,6 +372,7 @@ namespace {
373 { LuaError::ERRMEM, "LUA_ERRMEM" }, 372 { LuaError::ERRMEM, "LUA_ERRMEM" },
374 { LuaError::ERRGCMM, "LUA_ERRGCMM" }, 373 { LuaError::ERRGCMM, "LUA_ERRGCMM" },
375 { LuaError::ERRERR, "LUA_ERRERR" }, 374 { LuaError::ERRERR, "LUA_ERRERR" },
375 { LuaError::ERRFILE, "LUA_ERRFILE" },
376 }; 376 };
377 } // namespace local 377 } // namespace local
378 378