mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: rename hot_code_reloading to hot_reload
This commit is contained in:
parent
01586d6d67
commit
707ddba143
@ -1302,11 +1302,12 @@ fn new_v(args[]string) *V {
|
||||
build_mode: build_mode
|
||||
cflags: cflags
|
||||
}
|
||||
|
||||
if pref.is_play {
|
||||
println('Playground')
|
||||
}
|
||||
if pref.is_so {
|
||||
out_name_c = out_name.all_after('/') + '_shared_lib.c'
|
||||
}
|
||||
|
||||
return &V {
|
||||
os: _os
|
||||
out_name: out_name
|
||||
|
@ -257,7 +257,7 @@ fn (p mut Parser) parse() {
|
||||
p.comp_time()
|
||||
case Token.key_global:
|
||||
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.next()
|
||||
|
Loading…
Reference in New Issue
Block a user