MCPcopy Create free account
hub / github.com/MCJack123/craftos2 / luaopen_myplugin

Function luaopen_myplugin

examples/plugin_base.cpp:28–31  ·  view source on GitHub ↗

replace "myplugin" with the plugin name

Source from the content-addressed store, hash-verified

26extern "C" {
27// replace "myplugin" with the plugin name
28DLLEXPORT int luaopen_myplugin(lua_State *L) {
29 luaL_newlib(L, M);
30 return 1;
31}
32
33DLLEXPORT PluginInfo * plugin_init(PluginFunctions * func, const path_t& path) {
34 // configure any other information, or save the functions here...

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected