update tests and single again

add assert.hpp for better code understanding
prepare to rewrite all the damn docs, and update the tutorials...
This commit is contained in:
ThePhD 2017-12-25 23:27:22 -05:00
parent acade465f1
commit 002303d52b
59 changed files with 402 additions and 234 deletions

View file

@ -1,7 +1,7 @@
#define SOL_CHECK_ARGUMENTS 1
#include <sol.hpp>
#include <cassert>
#include "assert.hpp"
int main(int, char*[]) {
sol::state lua;
@ -27,8 +27,8 @@ int main(int, char*[]) {
int result = func(sol::stack_count(2));
// make sure everything is clean
assert(result == 22);
assert(lua.stack_top() == 0); // stack is empty/balanced
c_assert(result == 22);
c_assert(lua.stack_top() == 0); // stack is empty/balanced
return 0;
}