tinygo/runtime/runtime.h
Ayke van Laethem 7be746e2f3 Make 'int' platform-dependent
Or rather, provide abstraction to make this feature easy to add in the
future.
2018-04-13 00:14:16 +02:00

11 строки
223 Б
C

#pragma once
#include <stdint.h>
typedef struct {
uint32_t len; // TODO: size_t (or, let max string size depend on target/flag)
uint8_t buf[]; // variable size
} string_t;
typedef int32_t intgo_t; // may be 64-bit