bLua is the glue layer between C++ and Lua, and b stands for bridge. The feature depends on C++17. There is only one header file interface, which is simple, lightweight and completely isolated, and manages the life cycle of c++ pointers in a way that does not intrude userdata. Use lua to call c++. First, register the class and the required Member function // Register global function bLua::reg_global_func(L, “newA”, newA); bLua::reg_global_func(L, “printA”, printA); // Register class function bLua::reg_class(L); bLua::reg_class_func(L, “get_this”, &A::get_this); bLua::reg_class_func(L, “get_i…

#Lightweight #Lua #binding #library #bLua

Leave a Comment

Your email address will not be published. Required fields are marked *