Skip to content

Commit a0f50fa

Browse files
authored
Add void return for hxsl setParamIndexValue and setParamFloatValue (#1131)
1 parent 6946044 commit a0f50fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hxsl/Macros.hx

+2
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ class Macros {
314314
name : "setParamIndexValue",
315315
pos : pos,
316316
kind : FFun( {
317+
ret : macro : Void,
317318
args : [ { name : "index", type : macro : Int }, { name : "val", type : macro : Dynamic } ],
318319
expr : {
319320
expr : ESwitch(macro index, [for( p in eparams ) { values : [macro $v{ index++ } ], expr : macro $p = val } ], macro {}),
@@ -326,6 +327,7 @@ class Macros {
326327
name : "setParamIndexFloatValue",
327328
pos : pos,
328329
kind : FFun( {
330+
ret : macro : Void,
329331
args : [ { name : "index", type : macro : Int }, { name : "val", type : macro : Float } ],
330332
expr : {
331333
expr : ESwitch(macro index, [for( i in 0...tparams.length ) if( tparams[i] == TFloat ) { values : [macro $v{i}], expr : macro ${eparams[i]} = val }], macro {}),

0 commit comments

Comments
 (0)