lua port on brew as dynamic application | developer.brewmp.com lua port on brew as dynamic application | developer.brewmp.com

Developer

lua port on brew as dynamic application

Forums:

hi, everyone:

I prepare to port lua on brew3.x as dynamic app because I can't wait for brew4 or BMP.
I bother about function point can be assigned in struct array. such as

static const luaL_Reg base_funcs[] = {
{"assert", luaB_assert},
{"collectgarbage", luaB_collectgarbage},
{"dofile", luaB_dofile},
{"error", luaB_error},
{"gcinfo", luaB_gcinfo},
{"getfenv", luaB_getfenv},
{"getmetatable", luaB_getmetatable},
{"loadfile", luaB_loadfile},
{"load", luaB_load},
{"loadstring", luaB_loadstring},
{"next", luaB_next},
{"pcall", luaB_pcall},
{"print", luaB_print},
{"rawequal", luaB_rawequal},
{"rawget", luaB_rawget},
{"rawset", luaB_rawset},
{"select", luaB_select},
{"setfenv", luaB_setfenv},
{"setmetatable", luaB_setmetatable},
{"tonumber", luaB_tonumber},
{"tostring", luaB_tostring},
{"type", luaB_type},
{"unpack", luaB_unpack},
{"xpcall", luaB_xpcall},
{NULL, NULL},
;

ads12 will got follow error
C3449W: static initialisation of 'base_funcs' using address of 'luaB_assert' may cause link failure -ropi

...

Did anyone do similar work? Can give me any advice?

thanks lots.

Are you using elf2mod utility?
This might help you.

Are you using elf2mod utility?
This might help you.