mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 14:33:41 +00:00
cgo: support errno value as second return parameter
Making this work on all targets was interesting but there's now a test in place to make sure this works on all targets that have the CGo test enabled (which is almost all targets).
This commit is contained in:
Vendored
+3
@@ -1,5 +1,6 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <errno.h>
|
||||
|
||||
typedef short myint;
|
||||
typedef short unusedTypedef;
|
||||
@@ -154,3 +155,5 @@ void arraydecay(int buf1[5], int buf2[3][8], arraydecay_buf3 buf3);
|
||||
double doSqrt(double);
|
||||
|
||||
void printf_single_int(char *format, int arg);
|
||||
|
||||
int set_errno(int err);
|
||||
|
||||
Reference in New Issue
Block a user