lua模块化Cpp接口

luaL_Reg lib[] = {

        {"xxx", xxx},

        {NULL, NULL},

    };

luaL_register(L, "LibName", lib);

这样就可以将共性的接口,封装起来

posted @ 2017-07-05 11:50  VindyLeong  阅读(296)  评论(0编辑  收藏  举报