author | Francesco Abbate <francesco.bbt@gmail.com> | 2010年07月20日 21:58:52 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2010年07月20日 21:58:52 +0200 |
commit | 9cc9699acd1723024c8ba5c82eed9d317115428d (patch) | |
tree | 9ca317bc38196af30a29db9bdff23b975a50fb52 /agg-plot/lua-draw.cpp | |
parent | 9f5ff91f0bc36ecf48d1ae30c3670eaef336703a (diff) | |
download | gsl-shell-9cc9699acd1723024c8ba5c82eed9d317115428d.tar.gz |
-rw-r--r-- | agg-plot/lua-draw.cpp | 5 |
diff --git a/agg-plot/lua-draw.cpp b/agg-plot/lua-draw.cpp index 48e9580f..16ae5ea3 100644 --- a/agg-plot/lua-draw.cpp +++ b/agg-plot/lua-draw.cpp @@ -61,7 +61,7 @@ static struct path_cmd_reg cmd_table[] = { {CMD_ERROR, NULL, NULL} }; -static const struct luaL_Reg plot_functions[] = { +static const struct luaL_Reg draw_functions[] = { {"path", agg_path_new}, {"text", agg_text_new}, {"rgba", agg_rgba_new}, @@ -399,4 +399,7 @@ draw_register (lua_State *L) lua_setfield (L, -2, "__index"); luaL_register (L, NULL, rgba_methods); lua_pop (L, 1); + + /* gsl module registration */ + luaL_register (L, NULL, draw_functions); } |