src/main.cpp

changeset 498
791c831c8020
parent 497
c51941e590b6
child 504
6a1fa662bfc1
equal deleted inserted replaced
497:c51941e590b6 498:791c831c8020
137 { return fmt ("v%1 %2", versionString(), versionMoniker()); 137 { return fmt ("v%1 %2", versionString(), versionMoniker());
138 } 138 }
139 139
140 // ============================================================================= 140 // =============================================================================
141 // ----------------------------------------------------------------------------- 141 // -----------------------------------------------------------------------------
142 void assertionFailure (const char* file, const ulong line, const char* funcname, const char* expr) 142 void assertionFailure (const char* file, int line, const char* funcname, const char* expr)
143 { str errmsg = fmt ("File: %1\nLine: %2:\nFunction %3:\n\nAssertion `%4' failed", 143 { str errmsg = fmt ("File: %1\nLine: %2:\nFunction %3:\n\nAssertion `%4' failed",
144 file, line, funcname, expr); 144 file, line, funcname, expr);
145 145
146 #ifndef RELEASE 146 #ifndef RELEASE
147 errmsg += ", aborting."; 147 errmsg += ", aborting.";

mercurial