1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/preludes
2022-12-02 18:12:42 +02:00
..
embed_file all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
live_main.v
live_shared.v
live.v
profiled_program.v checker,cgen: implement v.profile.on/1, support [if profile] and -d no_profile_startup (#13232) 2022-01-21 03:26:05 +02:00
README.md
test_runner_dump.v testing: refactor the v test implementation to make supporting different output modes easier 2022-12-02 18:12:42 +02:00
test_runner_normal.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
test_runner_simple.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
test_runner_tap.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
test_runner.v all: change optional to result in vlib/v. (#16177) 2022-10-24 11:51:20 +03:00
tests_with_stats.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
trace_calls.v transformer: improve -trace-calls output, enable tracing of builtin fns, show elapsed ns and used stack size (#16205) 2022-10-25 20:56:12 +03:00

V preludes:

The vlib/v/preludes/ contains small v code snippets, that V uses when compiling certain v programs. V adds the files below automatically itself. Each file is used in different situations (see below).

NB: preludes are NOT intended to be used by user programs/modules. The folder vlib/v/preludes/ is NOT a v module.

Details:

vlib/v/preludes/live_main.v

Used when compiling live programs. This file is used by the main executable live program, that starts the file change monitoring thread. Each live program needs module os and module time, in order for the background file change monitoring thread to work properly.

vlib/v/preludes/live_shared.v

Used when compiling live programs, for the shared library portion of the live programs, that is reloaded each time the code is changed.

vlib/v/preludes/tests_assertions.v

Used when compiling _test.v programs. It specifies how failed assertions will look.

vlib/v/preludes/tests_with_stats.v

Used when compiling _test.v programs with -stats option. It specifies how the result will appear ('assert' vs 'asserts' and so on).