diff options
author | Aki <please@ignore.pl> | 2021-02-24 21:22:12 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-02-24 21:22:12 +0100 |
commit | d64871855128af6fa41a8c089686552ca1b66c70 (patch) | |
tree | 949ee94a4d83eec97ffec681c36ddb13f5b6a3bc /plop.c | |
parent | 0cbe8c24b3f870d91084b3612dba8b4478b64a32 (diff) | |
download | plop-d64871855128af6fa41a8c089686552ca1b66c70.zip plop-d64871855128af6fa41a8c089686552ca1b66c70.tar.gz plop-d64871855128af6fa41a8c089686552ca1b66c70.tar.bz2 |
Replaced pushstring with pushliteral where applicable
Diffstat (limited to 'plop.c')
-rw-r--r-- | plop.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |