diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-03-28 07:06:54 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-03-28 07:06:54 -0400 |
commit | db6732401af13c3e283c7a0a33fc9c379a8798a6 (patch) | |
tree | 5c086e9bc4290c10f2cc050175376fb1bcf7d38d | |
parent | 55c32761a0be05c7d4b4e17765e2d341efb0ebe6 (diff) |
Move our lua_register(), lua_rawlen() from lua_function.h to .cpp.
-rw-r--r-- | indra/llcommon/lua_function.cpp | 3 | ||||
-rw-r--r-- | indra/llcommon/lua_function.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/lua_function.cpp b/indra/llcommon/lua_function.cpp index 9f0abd5674..e731408c7d 100644 --- a/indra/llcommon/lua_function.cpp +++ b/indra/llcommon/lua_function.cpp @@ -31,6 +31,9 @@ #include "lualistener.h" #include "stringize.h" +#define lua_register(L, n, f) (lua_pushcfunction(L, (f), n), lua_setglobal(L, (n))) +#define lua_rawlen lua_objlen + /***************************************************************************** * luau namespace *****************************************************************************/ diff --git a/indra/llcommon/lua_function.h b/indra/llcommon/lua_function.h index 07848e38af..868c13c3f1 100644 --- a/indra/llcommon/lua_function.h +++ b/indra/llcommon/lua_function.h @@ -23,9 +23,6 @@ class LuaListener; -#define lua_register(L, n, f) (lua_pushcfunction(L, (f), n), lua_setglobal(L, (n))) -#define lua_rawlen lua_objlen - namespace lluau { // luau defines luaL_error() as void, but we want to use the Lua idiom of |