test sqlite

This commit is contained in:
malloc 2018-04-13 12:21:48 -05:00
parent 36def513b0
commit 329c9209b2
5 changed files with 9 additions and 3 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "server/src/db/sqlite"]
path = server/src/db/sqlite
url = https://github.com/MallocNull/sqlite-amalgam

View file

@ -1,9 +1,11 @@
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 2.6)
project(server) project(server)
file(GLOB_RECURSE server_src file(GLOB_RECURSE server_src
"src/*.hpp" "src/*.hpp"
"src/*.cpp" "src/*.cpp"
"src/*.c"
"src/*.h"
) )
if(CMAKE_COMPILER_IS_GNUCXX) if(CMAKE_COMPILER_IS_GNUCXX)

1
server/src/db/sqlite Submodule

@ -0,0 +1 @@
Subproject commit 24cc3639a7a16f99fb12bbd6b0d0d835b3bfcda1

View file

@ -15,7 +15,7 @@
#include "sock/scapesock.hpp" #include "sock/scapesock.hpp"
#include "sock/pool.hpp" #include "sock/pool.hpp"
class User; class User;
class Test : sosc::Pool<User> { class Test : sosc::Pool<User> {
protected: protected:
void ProcessClient(User* client) override; void ProcessClient(User* client) override;

View file

@ -79,7 +79,7 @@ void Pool<T>::Start() {
this->stacks.push_back(Stack(this)); this->stacks.push_back(Stack(this));
this->stacks.back().Start(); this->stacks.back().Start();
} }
this->is_running = true; this->is_running = true;
} }