* lua导出基础
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#include "dl_lua_register.h"
|
||||
|
||||
#include <luaaa.hpp>
|
||||
|
||||
#include "dl_io.h"
|
||||
|
||||
namespace dl
|
||||
{
|
||||
void lua_log(const std::string& str)
|
||||
{
|
||||
log(str);
|
||||
}
|
||||
|
||||
void lua_register_base(lua_State* L)
|
||||
{
|
||||
/*luaaa::LuaClass<std::string_view> class_string_view(L, "string_view");
|
||||
class_string_view.ctor<const std::string&>();*/
|
||||
/*luaaa::LuaClass< Lua_dl> lua_dl(L, "dl");
|
||||
lua_dl.ctor();
|
||||
lua_dl.def("gfx", g_gfx);
|
||||
lua_dl.fun("log", log);*/
|
||||
|
||||
luaaa::LuaModule m{ L, "dl" };
|
||||
m.fun("log", lua_log);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user