-Added lua aux libs, changed some function names. To check.

This commit is contained in:
2022-10-20 19:01:01 +02:00
parent 5c47def659
commit 4ff4e6fa78
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -4,6 +4,6 @@
//extern "C" {
#include "lua.h"
//#include "lualib.h"
#include "lualib.h"
#include "lauxlib.h"
//}