diff --git a/lua.cpp b/lua.cpp index 43eaa74..0cb5c6d 100644 --- a/lua.cpp +++ b/lua.cpp @@ -718,7 +718,7 @@ void push_lua_funcs() { lua_pushcfunction(L,cpp_rect); lua_setglobal(L, "rect"); lua_pushcfunction(L,cpp_rectfill); lua_setglobal(L, "rectfill"); lua_pushcfunction(L,cpp_fillp); lua_setglobal(L, "fillp"); - lua_pushcfunction(L,cpp_print); lua_setglobal(L, "print"); + lua_pushcfunction(L,cpp_print); lua_setglobal(L, "prnt"); lua_pushcfunction(L,cpp_clip); lua_setglobal(L, "clip"); lua_pushcfunction(L,cpp_camera); lua_setglobal(L, "camera"); lua_pushcfunction(L,cpp_circ); lua_setglobal(L, "circ"); @@ -783,7 +783,7 @@ void push_lua_funcs() { lua_pushcfunction(L,cpp_stopmusic); lua_setglobal(L, "stopmusic"); lua_pushcfunction(L,cpp_ismusicplaying); lua_setglobal(L, "ismusicplaying"); - lua_pushcfunction(L,cpp_exit); lua_setglobal(L, "exit"); + lua_pushcfunction(L,cpp_exit); lua_setglobal(L, "quit"); lua_pushinteger(L, 0); lua_setglobal(L, "KEY_UNKNOWN"); lua_pushinteger(L, 4); lua_setglobal(L, "KEY_A"); @@ -899,7 +899,7 @@ void push_lua_funcs() { void lua_init(char* filenames) { L = luaL_newstate(); - + luaL_openlibs(L); push_lua_funcs(); char *pointer = filenames; diff --git a/lua/lua.hpp b/lua/lua.hpp index dd1ae9c..8f97ef3 100644 --- a/lua/lua.hpp +++ b/lua/lua.hpp @@ -4,6 +4,6 @@ //extern "C" { #include "lua.h" -//#include "lualib.h" +#include "lualib.h" #include "lauxlib.h" //}