v/cmd/tools/preludes
Daniel Däschle a22982d662
tests: colorize failing tests, improve layout (#8066)
2021-01-13 11:07:12 +02:00
..
README.md move v.v to cmd/v 2020-02-09 10:08:04 +01:00
live.v cgen: treat the main module like any other v module 2020-07-01 00:53:53 +02:00
live_main.v cgen: treat the main module like any other v module 2020-07-01 00:53:53 +02:00
live_shared.v all: experimental locked concurrency support, part 1 (#5637) 2020-07-04 12:44:25 +02:00
profiled_program.v profile: use specialized time__vpc_now 2020-04-26 22:14:54 +03:00
tests_assertions.v tests: colorize failing tests, improve layout (#8066) 2021-01-13 11:07:12 +02:00
tests_with_stats.v v test-fmt: reformat some skipped files, comment on the remaining ones 2020-10-15 00:39:09 +03:00

README.md

V preludes:

The cmd/tools/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 cmd/tools/preludes/ is NOT a v module.

Details:

cmd/tools/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.

cmd/tools/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.

cmd/tools/preludes/tests_assertions.v

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

cmd/tools/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).