mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix remaining errors. hello world now compiles
This commit is contained in:
@@ -32,9 +32,8 @@ pub fn type_nr_muls(t Type) int {
|
||||
// return true if pointer (nr_muls>0)
|
||||
[inline]
|
||||
pub fn type_is_ptr(t Type) bool {
|
||||
return type_nr_muls(t) > 0
|
||||
return type_nr_muls(t) > 0 // || t == voidptr_type_idx
|
||||
}
|
||||
|
||||
// set nr_muls on Type and return it
|
||||
[inline]
|
||||
pub fn type_set_nr_muls(t Type, nr_muls int) Type {
|
||||
|
||||
Reference in New Issue
Block a user