Regularized unit testing framework.

This commit is contained in:
2021-01-12 15:49:05 -05:00
parent 25b9b4cb5d
commit 6bf1476e5e
14 changed files with 174 additions and 167 deletions

View File

@@ -1,7 +1,7 @@
/////////////////////////////////////////////////////////
//
//
// LuaStack
// LUASTACK
//
// Class LuaStack lets you create "lua local variables." These are
// variables that seem to store lua values. Class LuaStack also provides
@@ -117,14 +117,11 @@
// Like the other operations, they are strict.
//
//
/////////////////////////////////////////////////////////
// LUADEFINE
//
//
// LuaDefine
//
// LuaDefine is a macro that helps you define lua functions, but
// it also puts the function into a global function registry.
// You use it like so:
// LuaDefine is a macro that defines a C function which is
// exposed to lua. It creates a global registry of functions
// created with LuaDefine. You use it like so:
//
// LuaDefine(function_name, "modebits") {
// ...
@@ -146,7 +143,6 @@
//
// c - create a class, and put a function into it.
// f - create a global function not inside a class.
// a - autoexec - run this function automatically on model creation.
//
//
/////////////////////////////////////////////////////////
@@ -531,5 +527,7 @@ public:
LuaFunctionReg regt_##name("t", #name, LuaTypeTagValue<name>)
#define LuaStringify(x) #x
#define LuaAssert(L, x) if (!(x)) { luaL_error((L), "Assert failed: %s (file %s line %d)", LuaStringify(x), __FILE__, __LINE__); }
#endif // LUASTACK_HPP