mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 22:43:40 +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
@@ -29,3 +29,11 @@ func Restore(state State) {
|
||||
"state": state,
|
||||
})
|
||||
}
|
||||
|
||||
// In returns whether the system is currently in an interrupt.
|
||||
//
|
||||
// Warning: interrupts have not been implemented for Xtensa yet so this always
|
||||
// returns false.
|
||||
func In() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user