2
0
Эх сурвалжийг харах

Add void return for hxsl setParamIndexValue and setParamFloatValue (#1131)

Leo Bergman 2 жил өмнө
parent
commit
a0f50fa8b1
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      hxsl/Macros.hx

+ 2 - 0
hxsl/Macros.hx

@@ -314,6 +314,7 @@ class Macros {
 			name : "setParamIndexValue",
 			pos : pos,
 			kind : FFun( {
+				ret : macro : Void,
 				args : [ { name : "index", type : macro : Int }, { name : "val", type : macro : Dynamic } ],
 				expr : {
 					expr : ESwitch(macro index, [for( p in eparams ) { values : [macro $v{ index++ } ], expr : macro $p = val } ], macro {}),
@@ -326,6 +327,7 @@ class Macros {
 			name : "setParamIndexFloatValue",
 			pos : pos,
 			kind : FFun( {
+				ret : macro : Void,
 				args : [ { name : "index", type : macro : Int }, { name : "val", type : macro : Float } ],
 				expr : {
 					expr : ESwitch(macro index, [for( i in 0...tparams.length ) if( tparams[i] == TFloat ) { values : [macro $v{i}], expr : macro ${eparams[i]} = val }], macro {}),