CMM: add template app, console library headers

git-svn-id: svn://kolibrios.org@6684 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2016-11-07 14:41:01 +00:00
parent 00d1316dd2
commit 23d86a6122
5 changed files with 126 additions and 12 deletions

View File

@@ -58,19 +58,10 @@ inline void debugi(dword d_int)
debugi(number);
}
:void assert(dword _type, _actual, _expected)
:void die(dword _last_msg)
{
char r[4096];
if (_type=='s') {
if (streq(_actual, _expected)) return;
sprintf(#r, "==========nok{\nactual: %s\nexpected: %s", _actual, _expected);
debugln(#r);
}
if (_type=='i') {
if (_actual == _expected)) return;
sprintf(#r, "==========nok{\nactual: %i\nexpected: %i", _actual, _expected);
debugln(#r);
}
debugln(_last_msg);
ExitProcess();
}
#endif