1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

compiler: @VMODULE

This commit is contained in:
Delyan Angelov
2020-02-29 15:23:45 +02:00
committed by GitHub
parent f67fca826e
commit f9d5c0110f
11 changed files with 223 additions and 27 deletions

View File

@ -0,0 +1,4 @@
Do not delete this file.
It is used by V to stop the lookup for v.mod,
so that the top level vlib/v.mod is not found,
if you delete mod1/v.mod .

View File

@ -0,0 +1,7 @@
#V Module#
Module {
name: 'mod1',
description: 'A simple module, containing C code.',
dependencies: []
}

View File

@ -1,7 +1,7 @@
module mod1
#flag -I @VMODULE/c
#flag @VMODULE/c/implementation.o
#flag -I @VROOT/c
#flag @VROOT/c/implementation.o
#include "header.h"