mirror of
https://github.com/ThePhD/sol2
synced 2026-08-15 10:32:03 -04:00
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:
parent
acade465f1
commit
002303d52b
59 changed files with 402 additions and 234 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue