#include "Study.h"
Study::Study()
{
}
Study::~Study()
{
}
int Study::ceshi(lua_State*L)
{
cout<<"测试成功"<<endl;
return 0;
}
int main()
{
int i = 0;
Study *study = new Study();
lua_State * L = luaL_newstate();
luaL_openlibs(L);
lua_register(L, "ceshi", Study::ceshi);
luaL_dofile(L, "2.lua");
getchar();
return 0;
Study::Study()
{
}
Study::~Study()
{
}
int Study::ceshi(lua_State*L)
{
cout<<"测试成功"<<endl;
return 0;
}
int main()
{
int i = 0;
Study *study = new Study();
lua_State * L = luaL_newstate();
luaL_openlibs(L);
lua_register(L, "ceshi", Study::ceshi);
luaL_dofile(L, "2.lua");
getchar();
return 0;
}
/***********************************2.lua*******************************************/
ceshi();