mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
4cc9bd9e4e
* using makefile blobs * improve usability of example * add sample with memory saving Makefile
16 lines
410 B
C
16 lines
410 B
C
/* a native printf is provided by the builtin libc of wamr */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" int printf( const char * ,...);
|
|
#define WASM_EXPORT __attribute__((visibility("default"))) extern "C"
|
|
#else
|
|
extern int printf( const char * ,...);
|
|
#define WASM_EXPORT __attribute__((visibility("default")))
|
|
#endif
|
|
|
|
WASM_EXPORT int main(int argc, char **argv)
|
|
{
|
|
printf("Hello RIOT %i\n" , 2001);
|
|
return 2468;
|
|
}
|