-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathocca_io.go
More file actions
28 lines (24 loc) · 807 Bytes
/
occa_io.go
File metadata and controls
28 lines (24 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package gocca
/*
#cgo CFLAGS: -I/usr/local/include
#cgo LDFLAGS: -L/usr/local/lib -locca
#include <occa.h>
#include <stdlib.h>
*/
import "C"
// Note: Due to the complexity of callbacks between Go and C,
// the I/O override functionality is currently not implemented.
// If you need to capture OCCA output, consider using file redirection
// or pipe mechanisms at the OS level.
// OverrideStdout is a placeholder for OCCA stdout override
// Currently not implemented due to CGo callback limitations
func OverrideStdout(out func(string)) {
// Not implemented
panic("Not implemented yet")
}
// OverrideStderr is a placeholder for OCCA stderr override
// Currently not implemented due to CGo callback limitations
func OverrideStderr(err func(string)) {
// Not implemented
panic("Not implemented yet")
}