Got a basic WebAssembly module compiling with support for calling jsStdPrint through printf implementation (provided by stb_sprintf.h). We have a single function "HelloFromWasm" exported for testing purposes. Pulled in a bunch of standard library headers from PigCore's wasm layer.
This commit is contained in:
21
std/src/std_main.c
Normal file
21
std/src/std_main.c
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
File: std_main.c
|
||||
Author: Taylor Robbins
|
||||
Date: 08\28\2025
|
||||
Description:
|
||||
** Contains the implementations for all standard library functions that are declared in the headers in the parent folder
|
||||
*/
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdint.h>
|
||||
#include <uchar.h>
|
||||
#include <string.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stddef.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "std_js_imports.h"
|
||||
|
||||
#include "std_memset.c"
|
||||
#include "std_printf.c"
|
||||
Reference in New Issue
Block a user