Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

580 B
Raw Blame
/*
 * p8_lua.h
 *
 *  Created on: Dec 13, 2023
 *      Author: bbaker
 */

#ifndef P8_LUA_H
#define P8_LUA_H

#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>

int lua_load_api();
int lua_shutdown_api();

int lua_init_script(const char *file_name, const char *script, size_t script_len);
int lua_call_function(const char *name, int ret);
int lua_update();
int lua_draw();
int lua_init();
bool lua_has_main_loop_callbacks();
void lua_get_error(const char **err_type, char *err, int err_size, const char **filename, int *lineno);

extern char m_str_buffer[256];

#endif