aboutsummaryrefslogtreecommitdiff
path: root/src/emcc_main.c
blob: 225bf801cf7b4b1d538fad2775f80a9f147e4dff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#define STBI_ASSERT(x)
#include <stdint.h>

#include <stdlib.h>

extern void console_error(uint64_t slice);
extern void console_log(uint64_t slice);
extern void console_warn(uint64_t slice);
extern void console_info(uint64_t slice);

// Zig compiles C code with -fstack-protector-strong which requires the
// following two symbols which don't seem to be provided by the emscripten
// toolchain(?)
uintptr_t __stack_chk_guard = 0xABBABABA;
_Noreturn void __stack_chk_fail(void) { abort(); };

// emsc_main() is the Zig entry function in pacman.zig
extern void emsc_main(void);
int main() {
  emsc_main();
  return 0;
}
mmit/go.sum?h=v1.11.0&id=7feef3453bdb8e3d49d14fe01d636ac26fa61eb1&follow=1'>build(deps): bump github.com/prometheus/client_golang (#6205)Gravatar dependabot[bot] 2-6/+6 2023-07-17build(deps): bump github.com/antonmedv/expr from 1.12.5 to 1.12.6 (#6208)Gravatar dependabot[bot] 2-3/+3 2023-07-17build(deps): bump google.golang.org/api from 0.130.0 to 0.131.0 (#6207)Gravatar dependabot[bot] 2-24/+24 2023-07-121.11.0 release prep (#6135)Gravatar Chris O'Haver 2-1/+56 * add draft notes Signed-off-by: Chris O'Haver <cohaver@infoblox.com> Co-authored-by: Manuel Rüger <manuel@rueg.eu>