summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-05-26 11:18:38 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-05-26 11:48:47 -0400
commit49619d7ecf17ca38a2f05bce50a402a02e4aebd1 (patch)
tree5fa7e78c931439bd79d1018ab6f956a89d2376b5
parent308d2fcfc4d19b0e97a1fe78249bfa43ae4fe0bd (diff)
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.
-rw-r--r--libtcc-test.c4
1 files 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;
}