mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-09-20 01:37:35 +03:00
Add RefC foreign closure support
This commit is contained in:
parent
cd3906645b
commit
58a321ca9c
@ -775,8 +775,7 @@ extractValue CFPtr varName = "((Value_Pointer*)" ++ varName ++ ")->p"
|
|||||||
extractValue CFGCPtr varName = "((Value_GCPointer*)" ++ varName ++ ")->p->p"
|
extractValue CFGCPtr varName = "((Value_GCPointer*)" ++ varName ++ ")->p->p"
|
||||||
extractValue CFBuffer varName = "((Value_Buffer*)" ++ varName ++ ")->buffer"
|
extractValue CFBuffer varName = "((Value_Buffer*)" ++ varName ++ ")->buffer"
|
||||||
extractValue CFWorld varName = "(Value_World*)" ++ varName
|
extractValue CFWorld varName = "(Value_World*)" ++ varName
|
||||||
extractValue (CFFun x y) varName = assert_total $ idris_crash ("INTERNAL ERROR: Function pointer not implemented: " ++ varName)
|
extractValue (CFFun x y) varName = "(Value_Closure*)" ++ varName
|
||||||
-- not really total but this way this internal error does not contaminate everything else
|
|
||||||
extractValue (CFIORes x) varName = extractValue x varName
|
extractValue (CFIORes x) varName = extractValue x varName
|
||||||
extractValue (CFStruct x xs) varName = assert_total $ idris_crash ("INTERNAL ERROR: Struct access not implemented: " ++ varName)
|
extractValue (CFStruct x xs) varName = assert_total $ idris_crash ("INTERNAL ERROR: Struct access not implemented: " ++ varName)
|
||||||
-- not really total but this way this internal error does not contaminate everything else
|
-- not really total but this way this internal error does not contaminate everything else
|
||||||
|
Loading…
Reference in New Issue
Block a user