From d64871855128af6fa41a8c089686552ca1b66c70 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 24 Feb 2021 21:22:12 +0100 Subject: Replaced pushstring with pushliteral where applicable --- plop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plop.c') diff --git a/plop.c b/plop.c index 7859e7b..41b9138 100644 --- a/plop.c +++ b/plop.c @@ -107,7 +107,7 @@ int plop_make_server(const char * node, const char * service) int plop_load_handler(lua_State * L, const char * path) { lua_getglobal(L, "package"); - lua_pushstring(L, "loaded"); + lua_pushliteral(L, "loaded"); int result = lua_rawget(L, -2); if (LUA_TTABLE != result) @@ -124,7 +124,7 @@ int plop_load_handler(lua_State * L, const char * path) return result; } - lua_pushstring(L, "handler"); + lua_pushliteral(L, "handler"); lua_pushvalue(L, -2); lua_rawset(L, -4); lua_setglobal(L, "handler"); -- cgit v1.1