no message
parent
396c440717
commit
a24a3f7ad3
|
@ -61,8 +61,6 @@ inline ENV_COMPILER CurrentEnvCompiler()
|
|||
return UNKNOWN;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 限制float有效位
|
||||
float LimitFloat(float in,int size) {
|
||||
uint64_t tmp = 1;
|
||||
|
|
|
@ -9,8 +9,14 @@
|
|||
#include "iostream"
|
||||
#include <vector>
|
||||
#include "pattern/ringbuffer.hpp"
|
||||
#include <tuple>
|
||||
|
||||
using namespace std;
|
||||
|
||||
std::tuple<int,std::string> ReturnMoreData(){
|
||||
return std::tuple<int,std::string> (1,"sss");
|
||||
}
|
||||
|
||||
void clearBuffer(int *dat,int len){
|
||||
for(int i = 0;i < len;i++){
|
||||
dat[i] = 0;
|
||||
|
@ -94,6 +100,8 @@ void TestRingBuffer(){
|
|||
}
|
||||
|
||||
int main() {
|
||||
auto x = ReturnMoreData();
|
||||
std::cout<<"x first is "<<std::get<0>(x) << std::get<1>(x)<<std::endl;
|
||||
std::cout<<"main"<<std::endl;
|
||||
TestRingBuffer();
|
||||
}
|
Loading…
Reference in New Issue