Rev 6278 | Rev 6698 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6278 | Rev 6684 | ||
---|---|---|---|
Line 56... | Line 56... | ||
56 | debug(text); |
56 | debug(text); |
57 | debug(": "); |
57 | debug(": "); |
58 | debugi(number); |
58 | debugi(number); |
59 | } |
59 | } |
Line 60... | Line 60... | ||
60 | 60 | ||
61 | :void assert(dword _type, _actual, _expected) |
61 | :void die(dword _last_msg) |
62 | { |
- | |
63 | char r[4096]; |
- | |
64 | if (_type=='s') { |
- | |
65 | if (streq(_actual, _expected)) return; |
- | |
66 | sprintf(#r, "==========nok{\nactual: %s\nexpected: %s", _actual, _expected); |
62 | { |
67 | debugln(#r); |
- | |
68 | } |
- | |
69 | if (_type=='i') { |
- | |
70 | if (_actual == _expected)) return; |
- | |
71 | sprintf(#r, "==========nok{\nactual: %i\nexpected: %i", _actual, _expected); |
63 | debugln(_last_msg); |
72 | debugln(#r); |
- | |
73 | } |
64 | ExitProcess(); |
Line 74... | Line 65... | ||
74 | } |
65 | } |
75 | 66 |