From 49619d7ecf17ca38a2f05bce50a402a02e4aebd1 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 26 May 2021 11:18:38 -0400 Subject: Changed the return type of the start function from void to int. This is so that we can check if an error occured in the start function. --- libtcc-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtcc-test.c b/libtcc-test.c index 472ad68..eae8e97 100644 --- a/libtcc-test.c +++ b/libtcc-test.c @@ -10,7 +10,7 @@ const char *files[] = { int main(int argc, char **argv) { TCCState *s = tcc_new(); - void (*start)(void); + int (*start)(void); tcc_set_output_type(s, TCC_OUTPUT_MEMORY); @@ -23,7 +23,7 @@ int main(int argc, char **argv) { start = tcc_get_symbol(s, "start"); - start(); + int ret = start(); return 0; } -- cgit v1.2.3-13-gbd6f