aboutsummaryrefslogtreecommitdiff
path: root/xC.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-16 10:49:08 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-17 00:31:23 +0200
commite2f3fc2e79fd38f86ea788c8881cb043c4f6e178 (patch)
tree77310a60d72bc9387a71a02ecd6cf493000a9c1c /xC.c
parentb55bae50df96b3258057ad17e7a08083d08b4819 (diff)
downloadxK-e2f3fc2e79fd38f86ea788c8881cb043c4f6e178.tar.gz
xK-e2f3fc2e79fd38f86ea788c8881cb043c4f6e178.tar.xz
xK-e2f3fc2e79fd38f86ea788c8881cb043c4f6e178.zip
xC: clean up
Diffstat (limited to 'xC.c')
-rw-r--r--xC.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xC.c b/xC.c
index ff7b3c4..8baf71d 100644
--- a/xC.c
+++ b/xC.c
@@ -11399,8 +11399,9 @@ lua_ctx_gc (lua_State *L)
static luaL_Reg lua_plugin_library[] =
{
- // These are global functions:
+ // These are pseudo-global functions:
+ { "measure", lua_plugin_measure },
{ "parse", lua_plugin_parse },
{ "hook_input", lua_plugin_hook_input },
{ "hook_irc", lua_plugin_hook_irc },
@@ -11410,8 +11411,8 @@ static luaL_Reg lua_plugin_library[] =
// And these are methods:
+ // Note that this only returns the height when used through an accessor.
{ "get_screen_size", lua_plugin_get_screen_size },
- { "measure", lua_plugin_measure },
{ "__gc", lua_ctx_gc },
{ NULL, NULL },
};