sokol,fontstash: move f_d_use_freetype.v to vlib/fontstash/a_d_use_freetype.v

pull/8292/head
Delyan Angelov 2021-01-23 11:39:12 +02:00
parent c21f57ff59
commit d4f6f5eec4
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
4 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
module f
module fontstash
#define FONS_USE_FREETYPE

View File

@ -767,6 +767,7 @@ pub struct HashStmt {
pub:
mod string
pos token.Position
source_file string
pub mut:
val string // example: 'include <openssl/rand.h> # please install openssl // comment'
kind string // : 'include'

View File

@ -1165,7 +1165,7 @@ fn (mut g Gen) stmt(node ast.Stmt) {
g.includes.writeln(guarded_include)
}
} else if node.kind == 'define' {
g.includes.writeln('// defined by module `$node.mod`:')
g.includes.writeln('// defined by module `$node.mod` in file `$node.source_file`:')
g.includes.writeln('#define $node.main')
}
}

View File

@ -33,6 +33,7 @@ fn (mut p Parser) hash() ast.HashStmt {
// p.trace('a.v', 'kind: ${kind:-10s} | pos: ${pos:-45s} | hash: $val')
return ast.HashStmt{
mod: p.mod
source_file: p.file_name
val: val
kind: kind
main: main_str