소스 검색

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

Leo Bergman 2 년 전
부모
커밋
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 {}),