fixed size array with const length ([N]int)

This commit is contained in:
Alexander Medvednikov 2019-12-06 02:38:35 +03:00
parent be323e2fb6
commit aed22a57e3
5 changed files with 17 additions and 9 deletions

View file

@ -316,6 +316,7 @@ pub fn (v mut V) compile() {
}
// All definitions
mut def := strings.new_builder(10000)// Avoid unnecessary allocations
def.writeln(cgen.const_defines.join_lines())
$if !js {
def.writeln(cgen.includes.join_lines())
def.writeln(cgen.typedefs.join_lines())