Open usuyuki opened 9 months ago
serial.Print("constrain(100,0,10): ") serial.PrintInt(arduino.Constrain(100, 0, 10)) serial.Println("")
の値が
constrain(100,0,10): 21
になる。
#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt)))
マクロで展開する感じなので、コンパイル後に動的にくる値に対応できない?
rust未検証
🐛 概要
の値が
になる。
原因
マクロで展開する感じなので、コンパイル後に動的にくる値に対応できない?
備考