lua打印日志

  lua_getglobal(tolua_S, "debug");
  lua_getfield(tolua_S, -1, "traceback");
  int iError = lua_pcall(tolua_S,    //VMachine    
	  0,    //Argument Count    
	  1,    //Return Value Count    
	  0);
  std::string track = lua_tostring(tolua_S, -1);

你可能感兴趣的:(lua,lua,开发语言)