summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-02-20 14:25:56 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-02-20 14:25:56 +0200
commitb305fb6411939bf6afbe2ecf2c1bdf765c9247a9 (patch)
tree6421d6425b20c0848180b847785f7923be0acae9 /indra/llcommon
parent9b1796df73f2d4fa19517f390258f798c10bff1e (diff)
Initial require implementation
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/lua_function.cpp9
-rw-r--r--indra/llcommon/lua_function.h9
2 files changed, 9 insertions, 9 deletions
diff --git a/indra/llcommon/lua_function.cpp b/indra/llcommon/lua_function.cpp
index 07e0c1fac2..17d81e8fc7 100644
--- a/indra/llcommon/lua_function.cpp
+++ b/indra/llcommon/lua_function.cpp
@@ -25,15 +25,6 @@
#include "llsdutil.h"
#include "lualistener.h"
-namespace
-{
- // can't specify free function free() as a unique_ptr deleter
- struct freer
- {
- void operator()(void* ptr){ free(ptr); }
- };
-} // anonymous namespace
-
int lluau::dostring(lua_State* L, const std::string& desc, const std::string& text)
{
{
diff --git a/indra/llcommon/lua_function.h b/indra/llcommon/lua_function.h
index c23bf533ba..f549137c3e 100644
--- a/indra/llcommon/lua_function.h
+++ b/indra/llcommon/lua_function.h
@@ -22,6 +22,15 @@
#define lua_register(L, n, f) (lua_pushcfunction(L, (f), n), lua_setglobal(L, (n)))
#define lua_rawlen lua_objlen
+namespace
+{
+ // can't specify free function free() as a unique_ptr deleter
+ struct freer
+ {
+ void operator()(void *ptr) { free(ptr); }
+ };
+}
+
namespace lluau
{
// luau defines luaL_error() as void, but we want to use the Lua idiom of