@@ -314,6 +314,9 @@ fn (mut c Amd64) cmp_var_reg(var Var, reg Register, config VarConfig) {
314314 ExternVar {
315315 c.cmp_var_reg (var_object as ExternVar , reg, config)
316316 }
317+ PreprocVar {
318+ c.cmp_var_reg (var_object as PreprocVar , reg, config)
319+ }
317320 }
318321 }
319322 LocalVar {
@@ -336,6 +339,9 @@ fn (mut c Amd64) cmp_var_reg(var Var, reg Register, config VarConfig) {
336339 ExternVar {
337340 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
338341 }
342+ PreprocVar {
343+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
344+ }
339345 }
340346}
341347
@@ -357,6 +363,9 @@ fn (mut c Amd64) cmp_var(var Var, val i32, config VarConfig) {
357363 ExternVar {
358364 c.cmp_var (var_object as ExternVar , val, config)
359365 }
366+ PreprocVar {
367+ c.cmp_var (var_object as PreprocVar , val, config)
368+ }
360369 }
361370 }
362371 LocalVar {
@@ -379,6 +388,9 @@ fn (mut c Amd64) cmp_var(var Var, val i32, config VarConfig) {
379388 ExternVar {
380389 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
381390 }
391+ PreprocVar {
392+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
393+ }
382394 }
383395}
384396
@@ -401,6 +413,9 @@ fn (mut c Amd64) dec_var(var Var, config VarConfig) {
401413 ExternVar {
402414 c.dec_var (var_object as ExternVar , config)
403415 }
416+ PreprocVar {
417+ c.dec_var (var_object as PreprocVar , config)
418+ }
404419 }
405420 }
406421 LocalVar {
@@ -423,6 +438,9 @@ fn (mut c Amd64) dec_var(var Var, config VarConfig) {
423438 ExternVar {
424439 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
425440 }
441+ PreprocVar {
442+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
443+ }
426444 }
427445}
428446
@@ -446,6 +464,9 @@ fn (mut c Amd64) inc_var(var Var, config VarConfig) {
446464 ExternVar {
447465 c.inc_var (var_object as ExternVar , config)
448466 }
467+ PreprocVar {
468+ c.inc_var (var_object as PreprocVar , config)
469+ }
449470 }
450471 }
451472 LocalVar {
@@ -492,6 +513,9 @@ fn (mut c Amd64) inc_var(var Var, config VarConfig) {
492513 ExternVar {
493514 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
494515 }
516+ PreprocVar {
517+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
518+ }
495519 }
496520}
497521
@@ -689,6 +713,9 @@ fn (mut c Amd64) mov_reg_to_var(var Var, r Register, config VarConfig) {
689713 ExternVar {
690714 c.mov_reg_to_var (var_object as ExternVar , reg, config)
691715 }
716+ PreprocVar {
717+ c.mov_reg_to_var (var_object as PreprocVar , reg, config)
718+ }
692719 }
693720 }
694721 LocalVar {
@@ -773,6 +800,9 @@ fn (mut c Amd64) mov_reg_to_var(var Var, r Register, config VarConfig) {
773800 ExternVar {
774801 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
775802 }
803+ PreprocVar {
804+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
805+ }
776806 }
777807}
778808
@@ -793,6 +823,9 @@ fn (mut c Amd64) mov_int_to_var(var Var, integer i32, config VarConfig) {
793823 ExternVar {
794824 c.mov_int_to_var (var_object as ExternVar , integer, config)
795825 }
826+ PreprocVar {
827+ c.mov_int_to_var (var_object as PreprocVar , integer, config)
828+ }
796829 }
797830 }
798831 LocalVar {
@@ -858,6 +891,9 @@ fn (mut c Amd64) mov_int_to_var(var Var, integer i32, config VarConfig) {
858891 ExternVar {
859892 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
860893 }
894+ PreprocVar {
895+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
896+ }
861897 }
862898}
863899
@@ -907,6 +943,9 @@ fn (mut c Amd64) mov_var_to_reg(reg Register, var Var, config VarConfig) {
907943 ExternVar {
908944 c.mov_var_to_reg (reg, var_object as ExternVar , config)
909945 }
946+ PreprocVar {
947+ c.mov_var_to_reg (reg, var_object as PreprocVar , config)
948+ }
910949 }
911950 }
912951 LocalVar {
@@ -975,6 +1014,9 @@ fn (mut c Amd64) mov_var_to_reg(reg Register, var Var, config VarConfig) {
9751014 ExternVar {
9761015 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
9771016 }
1017+ PreprocVar {
1018+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
1019+ }
9781020 }
9791021}
9801022
@@ -2147,6 +2189,9 @@ fn (mut c Amd64) assign_var(var IdentVar, raw_type ast.Type) {
21472189 ExternVar {
21482190 c.mov_reg_to_var (var as ExternVar , Amd64 Register.rax)
21492191 }
2192+ PreprocVar {
2193+ c.mov_reg_to_var (var as PreprocVar , Amd64 Register.rax)
2194+ }
21502195 }
21512196 } else {
21522197 c.g.n_error ('${@LOCATION} error assigning type ${typ} with size ${size} : ${info} ' )
@@ -3771,6 +3816,9 @@ fn (mut c Amd64) init_struct(var Var, init ast.StructInit) {
37713816 ExternVar {
37723817 c.init_struct (var_object as ExternVar , init)
37733818 }
3819+ PreprocVar {
3820+ c.init_struct (var_object as PreprocVar , init)
3821+ }
37743822 }
37753823 }
37763824 LocalVar {
@@ -3816,6 +3864,9 @@ fn (mut c Amd64) init_struct(var Var, init ast.StructInit) {
38163864 ExternVar {
38173865 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
38183866 }
3867+ PreprocVar {
3868+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
3869+ }
38193870 }
38203871}
38213872
@@ -3867,6 +3918,9 @@ fn (mut c Amd64) init_array(var Var, node ast.ArrayInit) {
38673918 ExternVar {
38683919 c.init_array (var_object as ExternVar , node)
38693920 }
3921+ PreprocVar {
3922+ c.init_array (var_object as PreprocVar , node)
3923+ }
38703924 }
38713925 }
38723926 LocalVar {
@@ -3883,6 +3937,9 @@ fn (mut c Amd64) init_array(var Var, node ast.ArrayInit) {
38833937 ExternVar {
38843938 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
38853939 }
3940+ PreprocVar {
3941+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
3942+ }
38863943 }
38873944}
38883945
@@ -4182,6 +4239,9 @@ fn (mut c Amd64) mov_ssereg_to_var(var Var, reg Amd64SSERegister, config VarConf
41824239 ExternVar {
41834240 c.mov_ssereg_to_var (var_object as ExternVar , reg, config)
41844241 }
4242+ PreprocVar {
4243+ c.mov_ssereg_to_var (var_object as PreprocVar , reg, config)
4244+ }
41854245 }
41864246 }
41874247 LocalVar {
@@ -4210,6 +4270,9 @@ fn (mut c Amd64) mov_ssereg_to_var(var Var, reg Amd64SSERegister, config VarConf
42104270 ExternVar {
42114271 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
42124272 }
4273+ PreprocVar {
4274+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
4275+ }
42134276 }
42144277}
42154278
@@ -4232,6 +4295,9 @@ fn (mut c Amd64) mov_var_to_ssereg(reg Amd64SSERegister, var Var, config VarConf
42324295 ExternVar {
42334296 c.mov_var_to_ssereg (reg, var_object as ExternVar , config)
42344297 }
4298+ PreprocVar {
4299+ c.mov_var_to_ssereg (reg, var_object as PreprocVar , config)
4300+ }
42354301 }
42364302 }
42374303 LocalVar {
@@ -4260,6 +4326,9 @@ fn (mut c Amd64) mov_var_to_ssereg(reg Amd64SSERegister, var Var, config VarConf
42604326 ExternVar {
42614327 c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
42624328 }
4329+ PreprocVar {
4330+ c.g.n_error ('${@LOCATION} unsupported var type ${var} ' )
4331+ }
42634332 }
42644333}
42654334
0 commit comments