mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-09-12 23:49:28 +00:00
runtime: check for heap allocations inside interrupts
This is unsafe and should never be done.
This commit is contained in:
committed by
Ron Evans
parent
e066e67baf
commit
f41b6a3b96
@@ -34,3 +34,12 @@ func Restore(state State) {
|
||||
"state": state,
|
||||
})
|
||||
}
|
||||
|
||||
// In returns whether the system is currently in an interrupt.
|
||||
//
|
||||
// Warning: this always returns false on AVR, as there does not appear to be a
|
||||
// reliable way to determine whether we're currently running inside an interrupt
|
||||
// handler.
|
||||
func In() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user