tinygo/src
Ayke van Laethem 79dae62c78 compiler,runtime: check for channel size limits
This patch is a combination of two related changes:

 1. The compiler now allows other types than `int` when specifying the
    size of a channel in a make(chan ..., size) call.
 2. The compiler now checks for maximum allowed channel sizes. Such
    checks are trivially optimized out in the vast majority of cases as
    channel sizes are usually constant.

I discovered this issue when trying out channels on AVR.
2020-03-13 16:15:36 -07:00
..
device stm32f4: refactor GPIO, in prep for adding SPI, I2C, PWM etc 2020-03-07 15:34:42 +01:00
examples machine: rename CPU_FREQUENCY -> CPUFrequency() 2019-12-16 20:34:39 +01:00
internal/reflectlite all: add support for go 1.13 2019-09-24 16:13:26 +02:00
machine stm32f4: refactor GPIO, in prep for adding SPI, I2C, PWM etc 2020-03-07 15:34:42 +01:00
os Add initial FreeBSD support 2019-12-29 10:48:28 +01:00
reflect add implementaion of array alignment in reflect 2019-10-25 15:18:03 +02:00
runtime compiler,runtime: check for channel size limits 2020-03-13 16:15:36 -07:00
sync properly handle nil New func in sync.Pool 2019-10-16 15:12:27 +02:00
syscall all: use baremetal build tag 2019-08-04 17:12:07 +02:00
testing Add common test logging methods such as Errorf/Fatalf/Printf 2019-08-13 20:59:09 +02:00