the previous pull requests added ltalloc.cc.new, ltalloc.h.new and a .patch file. I merged them and removed them.
I added extern C where necessary to make sure everything links fine when compiling ltalloc.cc in c++ while also using functions from ltalloc.h elsewhere.
ltalloc.h now has a #pragma once
I'm now working on adding a small test project with a CMakeLists.txt + Catch2 as a test framework. I'll also try to make a yml files for travis/appveyor so that we can have automated compilation checks and tests when merging PRs (but I'm not going to write tests right away, I'll just use the test code that was in the wiki).
Hey!
Small changes for starters:
ltalloc.cc.new
,ltalloc.h.new
and a .patch file. I merged them and removed them.extern C
where necessary to make sure everything links fine when compilingltalloc.cc
in c++ while also using functions fromltalloc.h
elsewhere.ltalloc.h
now has a#pragma once
I'm now working on adding a small test project with a CMakeLists.txt + Catch2 as a test framework. I'll also try to make a yml files for travis/appveyor so that we can have automated compilation checks and tests when merging PRs (but I'm not going to write tests right away, I'll just use the test code that was in the wiki).