diff --git a/programs/cmm/lib/debug.h b/programs/cmm/lib/debug.h index e67bc8268a..4c86734389 100644 --- a/programs/cmm/lib/debug.h +++ b/programs/cmm/lib/debug.h @@ -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 \ No newline at end of file diff --git a/programs/cmm/lib/obj/console.h b/programs/cmm/lib/obj/console.h new file mode 100644 index 0000000000..51e8f64d5e --- /dev/null +++ b/programs/cmm/lib/obj/console.h @@ -0,0 +1,75 @@ +#ifndef INCLUDE_CONSOLE_H +#define INCLUDE_CONSOLE_H +#print "[include