2025-06-27 00:32:57 +08:00
|
|
|
|
#ifndef MY_LUA_H__
|
|
|
|
|
#define MY_LUA_H__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include "lua.h"
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
// <20><>ʼ<EFBFBD><CABC>c<EFBFBD><63><EFBFBD>Ժ<EFBFBD><D4BA><EFBFBD><EFBFBD><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
void mylib_init(lua_State *L);
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
// <20><><EFBFBD><EFBFBD>lua<75><61><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
int lua_main (int argc, char **argv);
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
// <20><><EFBFBD><EFBFBD>lua<75>ű<EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
int mylua_run(const char *str);
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
// <20>ű<F2BFAABD><C5B1>ļ<EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
int myLua_run_flie(const char *filename);
|
|
|
|
|
|
2025-07-05 19:47:28 +08:00
|
|
|
|
// <20><><EFBFBD><EFBFBD>һ<EFBFBD>β<EFBFBD><CEB2>Խű<D4BD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
void mylua_test(void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|