1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

bring back assert outside of tests

This commit is contained in:
Alexander Medvednikov 2019-09-15 19:43:35 +03:00
parent 3db4d66824
commit 0b81c5a3cb

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))