bring back `assert` outside of tests

pull/1996/head^2
Alexander Medvednikov 2019-09-15 19:43:35 +03:00
parent 3db4d66824
commit 0b81c5a3cb
1 changed files with 2 additions and 2 deletions

View File

@ -264,9 +264,9 @@ fn (v mut V) compile() {
// `/usr/bin/ld: multiple definition of 'total_m'`
// TODO
//cgen.genln('i64 total_m = 0; // For counting total RAM allocated')
if v.pref.is_test {
//if v.pref.is_test {
cgen.genln('int g_test_ok = 1; ')
}
//}
if 'json' in v.table.imports {
cgen.genln('
#define js_get(object, key) cJSON_GetObjectItemCaseSensitive((object), (key))