mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
live: cleanup
This commit is contained in:
@ -26,6 +26,7 @@ pub mut:
|
||||
cb_after FNLiveReloadCB = 0 // executed after a reload try happened, even if failed
|
||||
cb_locked_before FNLiveReloadCB = 0 // executed before lib reload, in the mutex section
|
||||
cb_locked_after FNLiveReloadCB = 0 // executed after lib reload, in the mutex section
|
||||
user_ptr voidptr = 0 // you can set it to anything, then retrieve it in the cb_ fns
|
||||
}
|
||||
|
||||
// LiveReloadInfo.live_linkfn should be called by the reloader
|
||||
|
@ -8,9 +8,6 @@ import live
|
||||
|
||||
// The live reloader code is implemented here.
|
||||
|
||||
fn C.pthread_mutex_unlock(mtx voidptr)
|
||||
fn C.pthread_mutex_lock(mtx voidptr)
|
||||
|
||||
// NB: new_live_reload_info will be called by generated C code inside main()
|
||||
pub fn new_live_reload_info(original string, vexe string, vopts string, live_fn_mutex voidptr, live_linkfn live.FNLinkLiveSymbols) &live.LiveReloadInfo {
|
||||
file_base := os.file_name(original).replace('.v', '')
|
||||
|
Reference in New Issue
Block a user