Files
tinygo/testdata/cgo/main.h
T
Ayke 01f6aff422 loader: support global variables in CGo (#173)
Global variables (like functions) must be declared in the import "C" preamble and can then be used from Go.
2019-02-08 13:04:03 +01:00

4 lines
63 B
C

typedef short myint;
int add(int a, int b);
extern int global;