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

new gg/freetype modules with sokol/fontstash backends

This commit is contained in:
Alexander Medvednikov
2020-01-21 03:22:18 +01:00
parent 43ba6766ba
commit 0502a54a36
15 changed files with 321 additions and 20 deletions

View File

@ -705,6 +705,9 @@ fn (p mut Parser) check_types2(got_, expected_ string, throw bool) bool {
if got.starts_with('fn ') && (expected.ends_with('fn') || expected.ends_with('Fn')) {
return true
}
if got.starts_with('fn ') && expected.starts_with('fn ') {
return true
}
// Allow pointer arithmetic
if expected == 'void*' && got == 'int' {
return true