summaryrefslogtreecommitdiff
path: root/indra/llcommon/lua_function.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-02-09 09:55:48 -0500
committerNat Goodspeed <nat@lindenlab.com>2024-02-09 09:55:48 -0500
commit372fcad7f5b9acf7bb8c8748df3c5d88f308930b (patch)
tree3decd8016a06ac972e51200a529f96634e3effe9 /indra/llcommon/lua_function.h
parent24b6059620698744c035474db93975ebac28e45b (diff)
Change the LuaFunction subclass instance name suffix to _lua.
We add a suffix to let us publish a Lua foo() function that wraps a C++ foo() function. Of course the lua_CFunction must accept lua_State* and extract its parameters from the Lua stack, so it must invoke different C++ code than the C++ foo() function it's trying to reach. So the lua_CFunction is a method of the LuaFunction subclass instance named foo_lua. The suffix was _luadecl, but since the class name shows up in log messages, make it the more streamlined _lua instead.
Diffstat (limited to 'indra/llcommon/lua_function.h')
-rw-r--r--indra/llcommon/lua_function.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llcommon/lua_function.h b/indra/llcommon/lua_function.h
index 26c399cdd1..c23bf533ba 100644
--- a/indra/llcommon/lua_function.h
+++ b/indra/llcommon/lua_function.h
@@ -151,7 +151,7 @@ static struct name##_luasub : public LuaFunction \
{ \
name##_luasub(): LuaFunction(#name, &call, helptext) {} \
static int call(lua_State* L); \
-} name##_luadecl; \
+} name##_lua; \
int name##_luasub::call(lua_State* L)
// {
// ... supply method body here, referencing 'L' ...