better lighting
This commit is contained in:
parent
805a2713a3
commit
6ed4e17065
75 changed files with 6417 additions and 3667 deletions
|
|
@ -260,7 +260,7 @@ pxl8_script* pxl8_script_create(bool repl_mode) {
|
|||
lua_getglobal(script->L, "require");
|
||||
lua_pushstring(script->L, "ffi");
|
||||
if (lua_pcall(script->L, 1, 1, 0) != 0) {
|
||||
pxl8_script_set_error(script, lua_tostring(script->L, -1));
|
||||
pxl8_error("FFI require failed: %s", lua_tostring(script->L, -1));
|
||||
pxl8_script_destroy(script);
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -268,7 +268,7 @@ pxl8_script* pxl8_script_create(bool repl_mode) {
|
|||
lua_getfield(script->L, -1, "cdef");
|
||||
lua_pushstring(script->L, pxl8_ffi_cdefs);
|
||||
if (lua_pcall(script->L, 1, 0, 0) != 0) {
|
||||
pxl8_script_set_error(script, lua_tostring(script->L, -1));
|
||||
pxl8_error("FFI cdef failed: %s", lua_tostring(script->L, -1));
|
||||
pxl8_script_destroy(script);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue