examples: rename hot_code_reloading to hot_reload

pull/1682/head
Alexander Medvednikov 2019-08-20 00:08:45 +03:00
parent 01586d6d67
commit 707ddba143
6 changed files with 4 additions and 3 deletions

View File

@ -1302,11 +1302,12 @@ fn new_v(args[]string) *V {
build_mode: build_mode build_mode: build_mode
cflags: cflags cflags: cflags
} }
if pref.is_play {
println('Playground')
}
if pref.is_so { if pref.is_so {
out_name_c = out_name.all_after('/') + '_shared_lib.c' out_name_c = out_name.all_after('/') + '_shared_lib.c'
} }
return &V { return &V {
os: _os os: _os
out_name: out_name out_name: out_name

View File

@ -257,7 +257,7 @@ fn (p mut Parser) parse() {
p.comp_time() p.comp_time()
case Token.key_global: case Token.key_global:
if !p.pref.translated && !p.pref.is_live && if !p.pref.translated && !p.pref.is_live &&
!p.builtin_mod && !p.building_v { !p.builtin_mod && !p.building_v && !os.getwd().contains('/volt') {
p.error('__global is only allowed in translated code') p.error('__global is only allowed in translated code')
} }
p.next() p.next()